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:
parent
dc465bb39a
commit
f05e2e11e1
1 changed files with 2 additions and 2 deletions
|
@ -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" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue