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

[suggestion] custom bindings for new notes in multiple directories #67

Open
woodensquares opened this issue Jul 9, 2020 · 4 comments
Open

Comments

@woodensquares
Copy link

First of all thanks for providing this plugin, it is very useful to my note taking workflow.

I was going to write my own handler that did the following (might take a bit, as I have only recently started using vimscript) but before I do, I was wondering if maybe you yourself would consider enhancing the plugin in the following ways:

  • allow binding the new note functionality in nv_keymap so it could be tied to a specific location. I mean allowing nv_keymap to support something like new <directory> where if that binding is set, the note is created in <directory>. This would enable creating a new note in different directories easily, so if one has say 'work' / 'public' / 'private' etc. in nv_search_paths one could easily decide where to file the new note.

  • have the option to append/prepend a date/timestamp to the filename of the created note, this could also be added to nv_keymap maybe making the extended form of that new <directory> <datepre/datepost> and probably would be appreciated by anybody using a Zettelkasten type of workflow (you could have also "dateonly" to make created notes just have a timestamp.md filename)

having the above would enable you to make nv_create_note_key redundant (although probably would be good to check it in the handler for backwards compatibility) and would extend the binding flexibility you have already for split etc. to creating new notes.

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.82. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@alok
Copy link
Owner

alok commented Aug 21, 2020

Probably won't be able to properly consider this for a while, other things in life currently have greater priority.

@KingJulianS
Copy link

KingJulianS commented Mar 7, 2022

I was gonna ask exactly how to do this.
In my work I have lotso note taking, but would like to keep it per project. So would be nice to start search in a specific directory when required and if not found create in that directory..

Would it work if I let dir = X during my session, to override temporarily what's in vimrc?
If so, whats the quickest way to do it, or do I just type out full path?

Tx again.

@KingJulianS
Copy link

KingJulianS commented Apr 1, 2022

For now, I only have 2 dirs so in the interim decided to manually do it this way(~/notaional, being the same as my nv main dir ... )
wn = worknote , on = other note.

NNOREMAP WN :LET NV_MAIN_DIRECT = ~/work:SOURCE $myvimrc
NNOREMAP ON :LET NV_MAIN_DIRECT = ~/notational':SOURCE $myvimrc

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

No branches or pull requests

3 participants