Marty Oehme
a746e35d26
Since we do not make use of my own zettelkasten plugin anymore, this commit is a quick fix to reinstate the functionality of the `vn` alias in the shell opening the note index. An issue is that there is now no dedicated function to show or open the index, so we have to make do with a hardcoded path. Perhaps at some point I will get around to fixing that issue but until then I am fine with it just working again.
11 lines
334 B
Bash
11 lines
334 B
Bash
#!/usr/bin/env sh
|
|
|
|
# v shorthand for neovim
|
|
if exist nvim; then
|
|
alias v="nvim"
|
|
alias vim="nvim"
|
|
|
|
# open notes with my vim zettelkasten plugin
|
|
# TODO better implementation conditional on zk & zettelkasten existing
|
|
alias vn='nvim +"lua require \"zk.commands\".get(\"ZkCd\")()" +"edit ~/documents/notes/index.md"'
|
|
fi
|