From f05e2e11e17d81109d05354250758c6107470a1f Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 14 Jun 2024 22:08:55 +0200 Subject: [PATCH] nvim: Fix zk note creation mappings Mappings to create a note with its content or title from the current selection now work correctly. --- nvim/.config/nvim/lua/plugins/prose.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/prose.lua b/nvim/.config/nvim/lua/plugins/prose.lua index 3721252..d6c6327 100644 --- a/nvim/.config/nvim/lua/plugins/prose.lua +++ b/nvim/.config/nvim/lua/plugins/prose.lua @@ -125,8 +125,8 @@ local prose_plugs = { { "nl", "ZkLinks", desc = "note links" }, { "nb", "ZkBacklinks", desc = "note backlinks" }, { "nn", "ZkNew { title = vim.fn.input('Title: ') }", desc = "new note" }, - { "nn", "ZkNewFromTitleSelection", desc = "new note from selection", mode = "v" }, - { "nN", "ZkNewFromContentSelection", desc = "content from selection", mode = "v" }, + { "nn", ":'<,'>ZkNewFromTitleSelection", desc = "new note from selection", mode = "v" }, + { "nN", ":'<,'>ZkNewFromContentSelection", desc = "content from selection", mode = "v" }, }, },