nvim: Add existing zettel link insertion mappings
Added mapping to insert a link to an existing Zettel with `<localleader>ni` (note insert), either from normal mode which creates the complete link, or from visual selection mode which surrounds the current selection (as visible link text) with the link. New zettel links still use my own implementation so I have full control over their naming scheme.
This commit is contained in:
parent
22b70a0639
commit
8512bbf2cf
1 changed files with 13 additions and 0 deletions
|
@ -130,6 +130,19 @@ local prose_plugs = {
|
||||||
end,
|
end,
|
||||||
desc = "index page",
|
desc = "index page",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"<localleader>ni",
|
||||||
|
function()
|
||||||
|
require("zk.commands").get("ZkInsertLink")()
|
||||||
|
end,
|
||||||
|
desc = "insert link",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<localleader>ni",
|
||||||
|
":'<,'>ZkInsertLinkAtSelection<cr>",
|
||||||
|
mode = "v",
|
||||||
|
desc = "insert link",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue