fix: replace default mapping rather than mapping CR directly for history and search pickers (#2506)
This commit is contained in:
committed by
GitHub
parent
697c64b121
commit
40dc952352
@@ -574,7 +574,7 @@ internal.command_history = function(opts)
|
|||||||
sorter = conf.generic_sorter(opts),
|
sorter = conf.generic_sorter(opts),
|
||||||
|
|
||||||
attach_mappings = function(_, map)
|
attach_mappings = function(_, map)
|
||||||
map({ "i", "n" }, "<CR>", actions.set_command_line)
|
actions.select_default:replace(actions.set_command_line)
|
||||||
map({ "i", "n" }, "<C-e>", actions.edit_command_line)
|
map({ "i", "n" }, "<C-e>", actions.edit_command_line)
|
||||||
|
|
||||||
-- TODO: Find a way to insert the text... it seems hard.
|
-- TODO: Find a way to insert the text... it seems hard.
|
||||||
@@ -604,7 +604,7 @@ internal.search_history = function(opts)
|
|||||||
sorter = conf.generic_sorter(opts),
|
sorter = conf.generic_sorter(opts),
|
||||||
|
|
||||||
attach_mappings = function(_, map)
|
attach_mappings = function(_, map)
|
||||||
map({ "i", "n" }, "<CR>", actions.set_search_line)
|
actions.select_default:replace(actions.set_search_line)
|
||||||
map({ "i", "n" }, "<C-e>", actions.edit_search_line)
|
map({ "i", "n" }, "<C-e>", actions.edit_search_line)
|
||||||
|
|
||||||
-- TODO: Find a way to insert the text... it seems hard.
|
-- TODO: Find a way to insert the text... it seems hard.
|
||||||
|
|||||||
Reference in New Issue
Block a user