mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
feat(picker): mapped <c-g> to print_cwd in list. See #2244
This commit is contained in:
parent
14dd362d5d
commit
faa6abacb4
2 changed files with 5 additions and 0 deletions
|
|
@ -153,6 +153,10 @@ function M.close(picker)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function M.print_cwd(picker)
|
||||||
|
print(picker:cwd())
|
||||||
|
end
|
||||||
|
|
||||||
function M.cancel(picker)
|
function M.cancel(picker)
|
||||||
picker:norm(function()
|
picker:norm(function()
|
||||||
local main = require("snacks.picker.core.main").new({ float = false, file = false })
|
local main = require("snacks.picker.core.main").new({ float = false, file = false })
|
||||||
|
|
|
||||||
|
|
@ -296,6 +296,7 @@ local defaults = {
|
||||||
["<c-n>"] = "list_down",
|
["<c-n>"] = "list_down",
|
||||||
["<c-p>"] = "list_up",
|
["<c-p>"] = "list_up",
|
||||||
["<c-q>"] = "qflist",
|
["<c-q>"] = "qflist",
|
||||||
|
["<c-g>"] = "print_cwd",
|
||||||
["<c-s>"] = "edit_split",
|
["<c-s>"] = "edit_split",
|
||||||
["<c-t>"] = "tab",
|
["<c-t>"] = "tab",
|
||||||
["<c-u>"] = "list_scroll_up",
|
["<c-u>"] = "list_scroll_up",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue