Comments (2)
(Copying from mickael-menu/zk#11 (reply in thread))
zk
works in any subdirectory of a notebook,zk list
will display the paths relative to the working directory in this case.- However, sometimes it's useful to make sure the commands are ran from the root of the notebook, in case we use specific predefined paths (e.g.
-x log
to ignore the daily logs in the search). - I'm using vim-rooter which conveniently moves the wd to the root of a file's Git repository if there's any. Since I also use Git in my notebook, that's enough. But maybe we could have something similar in
zk.nvim
to auto-cwd to the root of the current notebook.
- However, sometimes it's useful to make sure the commands are ran from the root of the notebook, in case we use specific predefined paths (e.g.
- I think it makes sense to define a default notebook in
zk.nvim
's config, to use with commands when not already in a notebook.- The cwd notebook should take precedence over the default one, otherwise this limits the plugin to a single notebook.
- Would it help if
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.
from zk.nvim.
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.
from zk.nvim.
Related Issues (18)
- Support FZF _and_ Telescope HOT 1
- Handle LSP things, similar to neuron's LS? HOT 9
- zk.nvim breaks built-in zk LSP support HOT 1
- FZF floating window stays open HOT 1
- Documentation needs work HOT 1
- Create/follow link feature breaks completion confirmation in some plugins
- Create/follow link functionality double wraps existing links instead of just following them HOT 1
- Deal with `cwd` path for notebooks and create/follow note/link creation.
- Using pre-built releases with :ZkInstall HOT 1
- New note links full path on system HOT 2
- My configuration settings are being overridden by the default settings HOT 2
- Support note content being passed to :ZkNew
- No preview or title with FZF HOT 10
- Creating wikilinks are broken HOT 1
- Fails to create a new note if the title contains an apostrophe (')
- Have the ability to tab complete through notebooks to select and use for further notes
- In-note linking to another note, or to a new note via FZF HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zk.nvim.