diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-11 12:50:37 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-11 12:50:37 +0200 |
| commit | f8c324b806a1b69d79633ea8bc4cf851b8c9bbeb (patch) | |
| tree | a39246b18cfbc678a9fb1595ff8e1fee4fdbe308 /plugin/50-notes.lua | |
| parent | 69e7a4980ee01d09403e15cc609edae6e9e3c067 (diff) | |
| download | nvim-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.lua | 4 |
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" }) |
