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 | 796b523aa141dd6aff2d100ddcc46f2895859ecd (patch) | |
| tree | b2deb243a2d6ad3349c49828143fa92de52dbe59 /.config/nvim/plugin | |
| parent | a5ebf64f09a05c4178159fd9a3c75c501d0fc7e8 (diff) | |
| download | dotfiles-796b523aa141dd6aff2d100ddcc46f2895859ecd.tar.gz dotfiles-796b523aa141dd6aff2d100ddcc46f2895859ecd.zip | |
misc(nvim): add NotesOpen user command
Diffstat (limited to '.config/nvim/plugin')
| -rw-r--r-- | .config/nvim/plugin/50-notes.lua | 4 |
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" }) |
