From fc8bb4c1d361388de5bac1de8ad871c12db646b3 Mon Sep 17 00:00:00 2001 From: pegasust Date: Tue, 13 Dec 2022 05:26:42 +0000 Subject: [PATCH] zk: multi-select sucks tbh --- neovim/init.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/neovim/init.lua b/neovim/init.lua index 010704d..216d448 100644 --- a/neovim/init.lua +++ b/neovim/init.lua @@ -280,7 +280,8 @@ end, { desc = '[F]ind [D]iagnostics' }) -- ZK remap stuffs remap('n', 'zf', function() - vim.cmd([[:ZkNotes]]) + -- vim.cmd([[:ZkNotes]]) + require('zk').edit({}, {multi_select = false}) end, { desc = '[Z]ettelkasten [F]iles' }) remap('n', 'zg', function() @@ -388,7 +389,7 @@ harpoon_nav('8', 8) harpoon_nav('9', 9) harpoon_nav('0', 10) --- neogit: easy-to-see git status +-- neogit: easy-to-see git status. Provides only productivity on staging/unstage require('neogit').setup {} remap('n', 'gs', function() require('neogit').open({}) end); @@ -890,7 +891,7 @@ require('zk.commands').add("ZkGrep", function(match_ctor) elseif type(match_ctor) == 'string' then match = { match = grep_str } end - require('zk').edit(match, { title = "Grep: '" .. grep_str .. "'" }) + require('zk').edit(match, { title = "Grep: '" .. grep_str .. "'", mutli_select = false}) end)