zk: multi-select sucks tbh

nix-rearch
pegasust 2022-12-13 05:26:42 +00:00
parent 2e3a540789
commit fc8bb4c1d3
1 changed files with 4 additions and 3 deletions

View File

@ -280,7 +280,8 @@ end, { desc = '[F]ind [D]iagnostics' })
-- ZK remap stuffs -- ZK remap stuffs
remap('n', '<leader>zf', function() remap('n', '<leader>zf', function()
vim.cmd([[:ZkNotes]]) -- vim.cmd([[:ZkNotes]])
require('zk').edit({}, {multi_select = false})
end, { desc = '[Z]ettelkasten [F]iles' }) end, { desc = '[Z]ettelkasten [F]iles' })
remap('n', '<leader>zg', function() remap('n', '<leader>zg', function()
@ -388,7 +389,7 @@ harpoon_nav('8', 8)
harpoon_nav('9', 9) harpoon_nav('9', 9)
harpoon_nav('0', 10) 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 {} require('neogit').setup {}
remap('n', '<leader>gs', function() require('neogit').open({}) end); remap('n', '<leader>gs', function() require('neogit').open({}) end);
@ -890,7 +891,7 @@ require('zk.commands').add("ZkGrep", function(match_ctor)
elseif type(match_ctor) == 'string' then elseif type(match_ctor) == 'string' then
match = { match = grep_str } match = { match = grep_str }
end end
require('zk').edit(match, { title = "Grep: '" .. grep_str .. "'" }) require('zk').edit(match, { title = "Grep: '" .. grep_str .. "'", mutli_select = false})
end) end)