From a746e35d260fc54e1a9923023a1082ae93f37307 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 14 Jun 2024 22:48:53 +0200 Subject: [PATCH] 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. --- nvim/.config/sh/alias.d/neovim.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nvim/.config/sh/alias.d/neovim.sh b/nvim/.config/sh/alias.d/neovim.sh index da610fd..5616a34 100644 --- a/nvim/.config/sh/alias.d/neovim.sh +++ b/nvim/.config/sh/alias.d/neovim.sh @@ -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