From 5995a8be8faaa2c6e8693ca52f2320cb4a80e3fa Mon Sep 17 00:00:00 2001 From: anott03 Date: Wed, 27 Jan 2021 11:22:11 -0500 Subject: Undo #465 (#469) We have broke all extension that do some sort of goto_file_selection:replace Problem described here: https://github.com/nvim-telescope/telescope.nvim/pull/465#issuecomment-767831897 Possible solution: https://github.com/nvim-telescope/telescope.nvim/pull/465#issuecomment-767808213 --- lua/telescope/mappings.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lua/telescope/mappings.lua') diff --git a/lua/telescope/mappings.lua b/lua/telescope/mappings.lua index 38f238c..499be3e 100644 --- a/lua/telescope/mappings.lua +++ b/lua/telescope/mappings.lua @@ -16,10 +16,10 @@ mappings.default_mappings = config.values.default_mappings or { [""] = actions.move_selection_next, [""] = actions.move_selection_previous, - [""] = actions.select + actions.center, - [""] = actions.hselect, - [""] = actions.vselect, - [""] = actions.tabselect, + [""] = actions.goto_file_selection_edit + actions.center, + [""] = actions.goto_file_selection_split, + [""] = actions.goto_file_selection_vsplit, + [""] = actions.goto_file_selection_tabedit, [""] = actions.preview_scrolling_up, [""] = actions.preview_scrolling_down, @@ -30,10 +30,10 @@ mappings.default_mappings = config.values.default_mappings or { n = { [""] = actions.close, - [""] = actions.select + actions.center, - [""] = actions.hselect, - [""] = actions.vselect, - [""] = actions.tabselect, + [""] = actions.goto_file_selection_edit + actions.center, + [""] = actions.goto_file_selection_split, + [""] = actions.goto_file_selection_vsplit, + [""] = actions.goto_file_selection_tabedit, -- TODO: This would be weird if we switch the ordering. ["j"] = actions.move_selection_next, -- cgit v1.2.3