no, it doesn't support custom directories, I didn't change that. I didn't even know it used a fixed directory, I thought it used the current directory. it worked for me automatically because my directory had the correct name by coincidence.
the emacs neuron-mode plugin looks for neuron.dhall starting from the directory of the open .md file, and then uses that. that's the right approach. i think neuron.vim supports only the default zettelkasten.
plus some small refactorings.
also I didn't bother to create new commands for the insert-as-folgezettel
functions as their name would be so huge anyway, so I created just the
shortcut directly...
ok, I'm implementing that, but there are two things:
neuron new always creates a file in ~/zettelkasten, it doesn't matter in which directory I am or if it has a neuron.dhall file
shouldn't we just use the directory in which the file being edited is located? there's no need for the recursion into higher directories. if the file being edited is in /home/whatever/super/zettel/page/, use that, if it is in /home/xyz/bananas/, use that -- a zettelkasten is never going to be on a different directory than where a zettel is -- or am I wrong?
Following suggestions for the user-interface Switch program name from neuron to zk for faster typing Have a default Zettelkasten directory per project e.g. .zk/ Use per default the Zettelkasten (.z...
I found some things half-broken and other things I disagreed with in neuron.vim, so I forked it and made my own: https://github.com/fiatjaf/neuron.vim
there's a list of differences from the original plugin here: https://github.com/fiatjaf/neuron.vim#differences-from-ihsanturkneuronvim, maybe more will come as soon as I learn this vimscript thing better
Differences from
ihsanturk/neuron.vim
[[[...]]]
syntax instead of<...>
;:
with-
in zettel titles search view so vim/fzf don't break these;gzi
/gzl
insert at the cursor, not in their own line followed by a newline;gzl
doesn't start a new zettel in insert mode, start in normal mode;gzu/gzl
go back to the previously visited zettel instead of the previously edited zettel.Looks like ihsanturk is busy with something else. Perhaps he would be interested in a merge later? If not, it might be wise to rename your plugin.
In any case, I'll mention your fork in the official docs.
@fiatjaf The plugin doesn't support custom zettelkasten directories (by finding neuron.dhall)?
I suppose the original plugin never supported that either.
https://github.com/srid/neuron/commit/a20b39a9593527a5542abf59148488ba13d82c3f
no, it doesn't support custom directories, I didn't change that. I didn't even know it used a fixed directory, I thought it used the current directory. it worked for me automatically because my directory had the correct name by coincidence.
would it be better if it used the current directory always?
thank you for mentioning, I'll see if he is interested in merging
the emacs neuron-mode plugin looks for
neuron.dhall
starting from the directory of the open .md file, and then uses that. that's the right approach. i think neuron.vim supports only the default zettelkasten.btw, while you are here -
gzi
inserts[[...]]
? If so, cangzI
(caps) be made to insert folgezettel link[[[..]]]
?i generally think
[[..]]
should be the default.what if there's no
neuron.dhall
? I didn't have that file and my site worked fine, only much later I learned about ityour second request is here: https://github.com/fiatjaf/neuron.vim/commit/d2fb9b387abcf279d0daf096254ca9230ad9b57a
then you fallback to the default, ~/zettelkasten
right, that makes sense
ok, I'm implementing that, but there are two things:
neuron new
always creates a file in~/zettelkasten
, it doesn't matter in which directory I am or if it has aneuron.dhall
file/home/whatever/super/zettel/page/
, use that, if it is in/home/xyz/bananas/
, use that -- a zettelkasten is never going to be on a different directory than where a zettel is -- or am I wrong?neuron -d /path/to/zk new ...
until we do https://github.com/srid/neuron/issues/161i think it would be nice if
gzz
sorted zettels bydate
- so recently created zettels can be opened easily.good idea
here's the directory search update: https://github.com/fiatjaf/neuron.vim/commit/6e2d205d8521686e0d2d4a73104c7a4d85b0c0f5
sorting by date is here: https://github.com/fiatjaf/neuron.vim/commit/6e0ba21985f51a52dd1c30cec0c04039a778d5a1