summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-06-11 12:50:37 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-06-11 12:50:37 +0200
commit796b523aa141dd6aff2d100ddcc46f2895859ecd (patch)
treeb2deb243a2d6ad3349c49828143fa92de52dbe59
parenta5ebf64f09a05c4178159fd9a3c75c501d0fc7e8 (diff)
downloaddotfiles-796b523aa141dd6aff2d100ddcc46f2895859ecd.tar.gz
dotfiles-796b523aa141dd6aff2d100ddcc46f2895859ecd.zip
misc(nvim): add NotesOpen user command
-rw-r--r--.config/nvim/plugin/50-notes.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/nvim/plugin/50-notes.lua b/.config/nvim/plugin/50-notes.lua
index 991d84e..907a2bf 100644
--- a/.config/nvim/plugin/50-notes.lua
+++ b/.config/nvim/plugin/50-notes.lua
@@ -113,6 +113,10 @@ end, { desc = "Fuzzy-find notes (name)" })
vim.api.nvim_create_user_command("NotesFindGrep", function()
require("fzf-lua").live_grep({ cwd = notes_dir })
end, { desc = "Fuzzy-find notes (content)" })
+vim.api.nvim_create_user_command("NotesOpen", function()
+ vim.cmd.cd(notes_dir)
+ vim.cmd.NotesFindTags()
+end, { desc = "Open notes" })
vim.keymap.set("n", "<Leader>nn", vim.cmd.NotesFindTags, { desc = "Fuzzy-find notes" })
vim.keymap.set("n", "<Leader>nf", vim.cmd.NotesFindFile, { desc = "Fuzzy-find notes file name" })