nvim: Fix zk note creation mappings

Mappings to create a note with its content or title from the current
selection now work correctly.
This commit is contained in:
Marty Oehme 2024-06-14 22:08:55 +02:00
parent dc465bb39a
commit f05e2e11e1
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -125,8 +125,8 @@ local prose_plugs = {
{ "<leader>nl", "<cmd>ZkLinks<cr>", desc = "note links" }, { "<leader>nl", "<cmd>ZkLinks<cr>", desc = "note links" },
{ "<leader>nb", "<cmd>ZkBacklinks<cr>", desc = "note backlinks" }, { "<leader>nb", "<cmd>ZkBacklinks<cr>", desc = "note backlinks" },
{ "<localleader>nn", "<cmd>ZkNew { title = vim.fn.input('Title: ') }<cr>", desc = "new note" }, { "<localleader>nn", "<cmd>ZkNew { title = vim.fn.input('Title: ') }<cr>", desc = "new note" },
{ "<localleader>nn", "<cmd>ZkNewFromTitleSelection<cr>", desc = "new note from selection", mode = "v" }, { "<localleader>nn", ":'<,'>ZkNewFromTitleSelection<cr>", desc = "new note from selection", mode = "v" },
{ "<localleader>nN", "<cmd>ZkNewFromContentSelection<cr>", desc = "content from selection", mode = "v" }, { "<localleader>nN", ":'<,'>ZkNewFromContentSelection<cr>", desc = "content from selection", mode = "v" },
}, },
}, },