removing the default directory - Neuron

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

fiatjaf

may I ask why not just use the current directory always for all neuron things?

Sridhar Ratnakumar

fiatjaf said:

may I ask why not just use the current directory always for all neuron things?

never thought about it, but it looks like a good idea. so what about ~/zettelkasten?

fiatjaf

as I said, I didn't even know there was such a hardcoded default. by first instinct when I installed neuron was: create a directory (which was coincidentally named ~/zettelkasten), move into it and start creating zettels inside.

fiatjaf

since subdirectories are not supported there's no way the policy of just-use-the-current-directory will fail or cause confusion

fiatjaf

actually it was far more confusing to me when I tried to create zettels on a different directory just to test the vim plugin and only after creating 4 I realized they were all in my default zettelkasten

fiatjaf

so what about ~/zettelkasten?

in my opinion it should be trashed out of code, but I don't know about backwards-compatibility etc.

Sridhar Ratnakumar

@fiatjaf That makes sense. I wouldn't worry about backwards compat here. I'm all for switching to current-directory entirely. And just don't have a default. BUT ... I think neuron should fail if there is no neuron.dhall (you just don't want to cd ~/code/someproj and then run neuron by mistake and it treating it as zettelksaten with just README.md in it)

Sridhar Ratnakumar

So in a way, neuron.dhall :: neuron == .git :: git

Sridhar Ratnakumar

https://github.com/srid/neuron/issues/161#issuecomment-689880375

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...
fiatjaf

great! that's the best solution in my opinion

fiatjaf

I'll try to do the PR but first I must get my haskell skills up to date and a development environment running well on my relatively ancient computer, then find some time, so please don't wait for me! if I take too long I can try another PR in the future.

Sridhar Ratnakumar

I'm in no rush either :-P Remember, development workflow is pretty fun with neuron (checkout CONTRIBUTING.md; in nvim you can try coc.vim)