You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Verify
Share your idea or feature request
I would like to access the Notebook Root Directory, with the following caveats
ZkNew
require("zk.util").resolve_notebook_path(0)
)Currently, the best way to do this would be something like
This, however, seems suboptimal.
I would be nice if
zk.cd
, had adryRun
option, much likezk.new
, which kept the cwd untouched, and returned the directory it would otherwise go to.https://github.com/mickael-menu/zk-nvim/blob/142625638d2fad464939c6ee1775571aba6379c6/lua/zk.lua#L53
Something like...
Beta Was this translation helpful? Give feedback.
All reactions