nvim: Fix vn note index opening sh alias

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.
This commit is contained in:
Marty Oehme 2024-06-14 22:48:53 +02:00
parent f05e2e11e1
commit a746e35d26
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -1,3 +1,5 @@
#!/usr/bin/env sh
# v shorthand for neovim
if exist nvim; then
alias v="nvim"
@ -5,5 +7,5 @@ if exist nvim; then
# open notes with my vim zettelkasten plugin
# TODO better implementation conditional on zk & zettelkasten existing
alias vn='nvim +"lua require \"zk.commands\".get(\"ZkCd\")()" +"lua require \"zettelkasten\".index_open()"'
alias vn='nvim +"lua require \"zk.commands\".get(\"ZkCd\")()" +"edit ~/documents/notes/index.md"'
fi