summaryrefslogtreecommitdiffstats
path: root/plugin/50-notes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/50-notes.lua')
-rw-r--r--plugin/50-notes.lua19
1 files changed, 10 insertions, 9 deletions
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:
--- `<Leader>no`: open notes in current window
--- `<Leader>nn`: fuzzy-find notes by tags
--- `<Leader>nf`: fuzzy-find notes by file name
--- `<Leader>ng`: fuzzy-find notes by content
+-- Keymaps (the find maps deliberately override the matching `<Leader>f…` defaults from 50-fzf.lua,
+-- which loads earlier TODO proper fix):
+-- `<Leader>fo`: open notes in current window
+-- `<Leader>ft`: fuzzy-find notes by tags
+-- `<Leader>ff`: fuzzy-find notes by file name
+-- `<Leader>fg`: fuzzy-find notes by content
-- `<Tab>` / `<S-Tab>` (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", "<Leader>no", vim.cmd.NotesOpen, { desc = "Open notes in current window" })
-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" })
-vim.keymap.set("n", "<Leader>ng", vim.cmd.NotesFindGrep, { desc = "Fuzzy-find notes content" })
+vim.keymap.set("n", "<Leader>fo", vim.cmd.NotesOpen, { desc = "Open notes in current window" })
+vim.keymap.set("n", "<Leader>ft", vim.cmd.NotesFindTags, { desc = "Fuzzy-find notes" })
+vim.keymap.set("n", "<Leader>ff", vim.cmd.NotesFindFile, { desc = "Fuzzy-find notes file name" })
+vim.keymap.set("n", "<Leader>fg", vim.cmd.NotesFindGrep, { desc = "Fuzzy-find notes content" })
generate_tags()