You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a few directories where I like to place my notes
/fleeting
/slips
/research
/output
I have templates for notes that fit one of these 4 directories, but I have no way of actually placing them in the correct folder.
I've tried the following approaches, but I'm not proficient with either lua or neovim intricacies.
Use note_path_func, but the parameter specs only gives the title, id and subdir which are not sufficient (especially since ID and title are currentle the same due to bug. I've tried to add metadata path to my templates but it sadly is also not available.
Use a callback with pre_write_note. This looked the most promising. But I reckon the path was already set, When I tried to save it using my mechanism I ended up with duplicated notes. One for the current buffer and one in the targeted directory.
Are there people out there that have a well working system to do something similar, am I missing something or should I open a feature/pull request?
The easiest way I imagine is to add a template property to spec that can be either nil or filled in with the picked template to create a mapping in the note_path_func.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a few directories where I like to place my notes
/fleeting
/slips
/research
/output
I have templates for notes that fit one of these 4 directories, but I have no way of actually placing them in the correct folder.
I've tried the following approaches, but I'm not proficient with either lua or neovim intricacies.
note_path_func
, but the parameter specs only gives the title, id and subdir which are not sufficient (especially since ID and title are currentle the same due to bug. I've tried to add metadatapath
to my templates but it sadly is also not available.pre_write_note
. This looked the most promising. But I reckon the path was already set, When I tried to save it using my mechanism I ended up with duplicated notes. One for the current buffer and one in the targeted directory.Are there people out there that have a well working system to do something similar, am I missing something or should I open a feature/pull request?
The easiest way I imagine is to add a template property to spec that can be either
nil
or filled in with the picked template to create a mapping in thenote_path_func
.Beta Was this translation helpful? Give feedback.
All reactions