Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.
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
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.
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, can gzI (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 it
your 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 -d /path/to/zk new ... until we do https://github.com/srid/neuron/issues/161
neuron -d /path/to/zk new ...
i think it would be nice if gzz sorted zettels by date - so recently created zettels can be opened easily.
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