Closed megalithic closed 3 years ago
(Copying from https://github.com/mickael-menu/zk/discussions/11#discussioncomment-489636)
zk
works in any subdirectory of a notebook, zk list
will display the paths relative to the working directory in this case.
-x log
to ignore the daily logs in the search).zk.nvim
to auto-cwd to the root of the current notebook.zk.nvim
's config, to use with commands when not already in a notebook.
zk
returned a particular exit code meaning "not in a notebook"? This way you could first attempt the command in cwd, and fallback on the notebook in the config.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.
Presently
:ZkNew
fails to complete successfully due to the fact thatzk
needs to have itscwd
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 thecwd
, using the.zk
dir as a root marker.See #2