thanks for the great plugin :-) . I would have suggestions regarding the creation of new Zettels and the logic to which directory to save a new Zettel / vimwiki-file.
Currently, ZettelNew works only if a vimwiki file is open (active buffer). It saves the new Zettel in the directory of the active vimwiki-buffer, in case this directory is specified as path in one of the vimwiki_list dictionaries.
I have missed to create new Zettels out of the blue, e.g. as first action entering vim/neovim (i.e. empty buffer). I suggest to allow ZettelNew to work without active vimwiki-file.
Additionally, I propose the following logical order to save the newly created wiki-file in:
(1) the current directory if it is in the g:vimwiki_list paths (similar to current behaviour)
(2) if (1) is not met, the directory-path of the first g:vimwiki_list with non-empty g:zettel_options
(3) if (1) and (2) are not met, the directory-path given by the first g:vimwiki_list entry
(4) else, vimwiki's default directory (e.g. ~/vimwiki/)
Please see also the update to doc/zettel.txt in this pull request.
Hi
thanks for the great plugin :-) . I would have suggestions regarding the creation of new Zettels and the logic to which directory to save a new Zettel / vimwiki-file.
Currently, ZettelNew works only if a vimwiki file is open (active buffer). It saves the new Zettel in the directory of the active vimwiki-buffer, in case this directory is specified as
path
in one of thevimwiki_list
dictionaries.Additionally, I propose the following logical order to save the newly created wiki-file in:
(1) the current directory if it is in the
g:vimwiki_list
paths (similar to current behaviour) (2) if (1) is not met, the directory-path of the firstg:vimwiki_list
with non-emptyg:zettel_options
(3) if (1) and (2) are not met, the directory-path given by the firstg:vimwiki_list
entry (4) else, vimwiki's default directory (e.g.~/vimwiki/
)Please see also the update to
doc/zettel.txt
in this pull request.Regards, David