summaryrefslogtreecommitdiffstats
path: root/plugin/50-notes.lua
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
commitf8c324b806a1b69d79633ea8bc4cf851b8c9bbeb (patch)
treea39246b18cfbc678a9fb1595ff8e1fee4fdbe308 /plugin/50-notes.lua
parent69e7a4980ee01d09403e15cc609edae6e9e3c067 (diff)
downloadnvim-config-f8c324b806a1b69d79633ea8bc4cf851b8c9bbeb.tar.gz
nvim-config-f8c324b806a1b69d79633ea8bc4cf851b8c9bbeb.zip
misc(nvim): add NotesOpen user command
Diffstat (limited to 'plugin/50-notes.lua')
-rw-r--r--plugin/50-notes.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/50-notes.lua b/plugin/50-notes.lua
index 991d84e..907a2bf 100644
--- a/plugin/50-notes.lua
+++ b/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" })