From 444c378d89c28cda4eb23cdaddb753ff19c845a2 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 27 Jun 2024 17:26:02 +0200 Subject: [PATCH] nvim: Update ZK mappings --- nvim/.config/nvim/lua/plugins/prose.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/prose.lua b/nvim/.config/nvim/lua/plugins/prose.lua index 2c2981f..502fc34 100644 --- a/nvim/.config/nvim/lua/plugins/prose.lua +++ b/nvim/.config/nvim/lua/plugins/prose.lua @@ -133,7 +133,10 @@ local prose_plugs = { keys = { -- additional key instpirations https://github.com/al1-ce/MonolithVim/blob/master/after/ftplugin/markdown.lua { "ni", "edit ~/documents/notes/index.md", desc = "open index", silent = true }, - { "nn", "ZkNotes { sort = { 'modified' } }", desc = "note list" }, + { "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" }, + { "nl", "ZkNotes { sort = { 'modified' } }", desc = "note list" }, { "nf", "ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Search: ') } }", @@ -142,12 +145,9 @@ local prose_plugs = { { "nf", "ZkMatch", desc = "find note from selection", mode = "v" }, { "nt", "ZkTags", desc = "note tags" }, { "nc", "ZkCd", desc = "notedir cd" }, - { "no", "ZkNotes { sort = { 'modified' } }", desc = "orphans list" }, - { "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" }, + { "no", "ZkOrphans { sort = { 'modified' } }", desc = "orphans list" }, + { "nb", "ZkBacklinks", desc = "note backlinks" }, + { "nl", "ZkLinks", desc = "note links" }, }, },