notational-fzf-vim
notational-fzf-vim copied to clipboard
[suggestion] custom bindings for new notes in multiple directories
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 innv_keymap
so it could be tied to a specific location. I mean allowingnv_keymap
to support something likenew <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. innv_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 thatnew <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 is automatically applying the label feature_request
to this issue, with a confidence of 0.82. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Probably won't be able to properly consider this for a while, other things in life currently have greater priority.
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.
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 <SILENT> <LEADER>WN :LET NV_MAIN_DIRECT = ~/work
:SOURCE $myvimrc
NNOREMAP <SILENT> <LEADER>ON :LET NV_MAIN_DIRECT = ~/notational':SOURCE $myvimrc