megalithic / zk.nvim

Neovim plugin as a lightweight wrapper around https://github.com/mickael-menu/zk
GNU General Public License v3.0
24 stars 11 forks source link

ZKNew fails to create a new note #1

Closed megalithic closed 3 years ago

megalithic commented 3 years ago

Presently :ZkNew fails to complete successfully due to the fact that zk needs to have its cwd set to a dir with an initialized notebook.

Possible solution is to allow a user to define minimal config to set the zk_default_notebook_path and all commands from that point forward would be run from that path as the cwd, using the .zk dir as a root marker.

See #2

mickael-menu commented 3 years ago

(Copying from https://github.com/mickael-menu/zk/discussions/11#discussioncomment-489636)

megalithic commented 3 years ago

Initial note creation (when in the correct / valid cwd) works; however, we don't have a way to +autochdir to that notebook's dir from some arbitrary starting cwd.

Closing this issue to track #5.