diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index 200333b..48726bb 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -80,5 +80,5 @@ "wrapping.nvim": { "branch": "master", "commit": "a4013c377e2ffa3be00fb67791d3605ae3115acb" }, "zen-mode.nvim": { "branch": "main", "commit": "d907e638c879642d226d27469b53db6925f69d4c" }, "zettelkasten.nvim": { "branch": "main", "commit": "0e77624689b470410f5355b613d45219c9350264" }, - "zk-nvim": { "branch": "main", "commit": "0413c52500cd0133b0cd8e7e7d43084855ac1760" } + "zk-nvim": { "branch": "main", "commit": "50fc25b88fb28829ec7f5e5a4d4b458fca21a550" } } \ No newline at end of file diff --git a/nvim/.config/nvim/lua/maps.lua b/nvim/.config/nvim/lua/maps.lua index 513ae9e..e6538c3 100644 --- a/nvim/.config/nvim/lua/maps.lua +++ b/nvim/.config/nvim/lua/maps.lua @@ -236,9 +236,32 @@ map("v", "g", 'g(dial-increment)') -- PLUGIN: zettelkasten.nvim map('n', '', [[:silent lua require 'zettelkasten'.link_follow()]]) map('v', '', [[:lua require 'zettelkasten'.link_follow(true)]]) -prefix({ ['w'] = { name = '+wiki' } }) -map('n', 'ww', [[:lua require 'zettelkasten'.index_open() ]], - { desc = "open wiki" }) +prefix({ ['n'] = { name = '+notes' } }) +map('n', 'ni', [[:lua require 'zettelkasten'.index_open() ]], + { desc = "index page" }) +-- PLUGIN: zk +map('n', 'nn', "ZkNotes { sort = { 'modified' } }", + { desc = "note list" }) +map("n", "nf", "ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Search: ') } }", + { desc = "note search" }) +map('n', 'nt', "ZkTags", + { desc = "note tags" }) +map('n', 'nc', "ZkCd", + { desc = "notes directory" }) +prefix({ ['n'] = { name = '+note' } }) +map('n', 'nl', "ZkLinks", + { desc = "note links" }) +map('n', 'nb', "ZkLinks", + { desc = "note backlinks" }) +map('n', 'nn', "ZkNew { title = vim.fn.input('Title: ') }", + { desc = "new note" }) +prefix({ ['n'] = { name = '+note', mode = "v" } }) +map('v', 'nn', ":ZkNewFromTitleSelection", + { desc = "title from selection" }) +map('v', 'nN', ":ZkNewFromContentSelection", + { desc = "content from selection" }) +map('v', 'nf', ":ZkMatch", + { desc = "find note from selection" }) -- PLUGIN: toggleterm.nvim -- create a lazygit window, set up in toggleterm settings