Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add directories of Notes #50

Open
clayrosenthal opened this issue Dec 13, 2023 · 2 comments
Open

Add directories of Notes #50

clayrosenthal opened this issue Dec 13, 2023 · 2 comments

Comments

@clayrosenthal
Copy link
Contributor

I want to be able to add a directory of notes recursively (or at least optionally recursively), to help import from other sources into standard notes. I am happy to write this code (and have already started a bit), but am curious if you'd prefer it be a flag of the current add note or have it be its own sub command, ie: add dir. I was also planning on having the ability to (optionally) tag these notes based on their directory name, and/or tag them based on a tag passed by flag.

Let me know your thoughts, or if you think this would be a bad idea.

@jonhadfield
Copy link
Owner

Hi @clayrosenthal,
I pretty much did this with a different app I was working on: https://github.com/jonhadfield/sn-dotfiles.
The idea with that is to take all of the dirs starting with . in your home directory and then create the folder structure (using tags) and files (as notes). You'd then sync to update files/tags based on which was last updated.
I've not looked at it for some time, but may resurrect it when I get time.

What about doing something similar to sn-dotfiles and adding an embed or sync argument that takes a filesystem path and recreates it in a similar fashion?

@clayrosenthal
Copy link
Contributor Author

Oh nice. I'll look into that and maybe make it more generic file/directory syncing with a dotfile sub command. Thanks for the pointer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants