Commit graph

9 commits

Author SHA1 Message Date
8555021527
zk: Split nnn quicknote and nni idea alias
nni Quickly lets me dump an idea, while nnn quickly lets me create a new
note in the notes inbox.
2025-03-15 20:08:44 +01:00
0ce49d758a
zk: Add new inbox note function
Add simple alias function which allows quickly creating a note destined
for the inbox by typing `nni`.
2025-03-10 20:22:02 +01:00
a01431609f
zk: Set working dir to wiki for aliases
Instead of finding the notebook at the wikiroot, we directly change the
current working dir to the notebook for the runtime of the zk command.

This has a couple advantages: Any other commands executed will also pick
up the correct directory, and creating notes in a specific directory
also just _works_ by giving a directory in the notes dir even if we are
somewhere else.
2025-03-10 20:22:02 +01:00
225641c1f0
zk: Create aliases for creating new note/draft/log 2025-02-22 19:35:39 +01:00
613df98520
zk: Ensure global wiki cmds are always executed in wiki
We use a custom zk indirection which ensures that any short alias for
interacting with the zk wiki will actually act on the globally assigned
wiki (by ensuring notebooks dir is "$WIKIROOT").
2025-02-22 19:35:38 +01:00
44cd4481a2
zk: Only create aliases if local wiki found
Local wiki requires the '$WIKIROOT' env var to be set, pointing to the
root of the (zk) wiki. So we only create associated aliases if the wiki
actually exists on a machine.
2025-02-22 19:35:38 +01:00
395bf80abe
zk: Fix note dir location and add cd alias
The note dir is in fact our `$WIKIROOT` so we set it to that by default.
Also took the chance and added a small 'cd' command into the note dir,
using `ncd`
2025-02-18 22:41:40 +01:00
083ef0a6ad
zk: Move nvim wiki index opening to zk module
While technically invoking nvim, it belongs more into the zk module
since it is only to be added if zk exists.
2025-02-07 13:11:52 +01:00
c14710aa98
vcs: Fix writing module structure 2024-09-19 11:18:54 +02:00