From d08a3df4f5cbc8411d295e00bf8e42b0bf5c5355 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Wed, 24 Jun 2026 17:11:35 +0200 Subject: misc(nvim): edit notes-specific fzf keymaps to override default fzf keymaps --- plugin/50-notes.lua | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'plugin/50-notes.lua') diff --git a/plugin/50-notes.lua b/plugin/50-notes.lua index 4e0494c..11a8aef 100644 --- a/plugin/50-notes.lua +++ b/plugin/50-notes.lua @@ -18,11 +18,12 @@ -- `NotesFindGrep`: fuzzy-find notes (content) -- `NotesOpen`: move to the notes directory and open index -- --- Keymaps: --- `no`: open notes in current window --- `nn`: fuzzy-find notes by tags --- `nf`: fuzzy-find notes by file name --- `ng`: fuzzy-find notes by content +-- Keymaps (the find maps deliberately override the matching `f…` defaults from 50-fzf.lua, +-- which loads earlier TODO proper fix): +-- `fo`: open notes in current window +-- `ft`: fuzzy-find notes by tags +-- `ff`: fuzzy-find notes by file name +-- `fg`: fuzzy-find notes by content -- `` / `` (in notes buffers): go to next/previous followable entity -- @@ -535,9 +536,9 @@ vim.api.nvim_create_user_command( ) vim.api.nvim_create_user_command("NotesOpen", open_notes, { desc = "Open notes" }) -vim.keymap.set("n", "no", vim.cmd.NotesOpen, { desc = "Open notes in current window" }) -vim.keymap.set("n", "nn", vim.cmd.NotesFindTags, { desc = "Fuzzy-find notes" }) -vim.keymap.set("n", "nf", vim.cmd.NotesFindFile, { desc = "Fuzzy-find notes file name" }) -vim.keymap.set("n", "ng", vim.cmd.NotesFindGrep, { desc = "Fuzzy-find notes content" }) +vim.keymap.set("n", "fo", vim.cmd.NotesOpen, { desc = "Open notes in current window" }) +vim.keymap.set("n", "ft", vim.cmd.NotesFindTags, { desc = "Fuzzy-find notes" }) +vim.keymap.set("n", "ff", vim.cmd.NotesFindFile, { desc = "Fuzzy-find notes file name" }) +vim.keymap.set("n", "fg", vim.cmd.NotesFindGrep, { desc = "Fuzzy-find notes content" }) generate_tags() -- cgit v1.3.1