diff options
| author | anott03 <amitav_nott@ryecountryday.org> | 2021-01-27 11:22:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-27 17:22:11 +0100 |
| commit | 5995a8be8faaa2c6e8693ca52f2320cb4a80e3fa (patch) | |
| tree | a3fe0a4f64074a1834df3b80e1445cb725b9fdb1 /lua/telescope/mappings.lua | |
| parent | ccbb7f56384921a81813f0f9ebc85cdba0b7c255 (diff) | |
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
Diffstat (limited to 'lua/telescope/mappings.lua')
| -rw-r--r-- | lua/telescope/mappings.lua | 16 |
1 files changed, 8 insertions, 8 deletions
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 { ["<Down>"] = actions.move_selection_next, ["<Up>"] = actions.move_selection_previous, - ["<CR>"] = actions.select + actions.center, - ["<C-x>"] = actions.hselect, - ["<C-v>"] = actions.vselect, - ["<C-t>"] = actions.tabselect, + ["<CR>"] = actions.goto_file_selection_edit + actions.center, + ["<C-x>"] = actions.goto_file_selection_split, + ["<C-v>"] = actions.goto_file_selection_vsplit, + ["<C-t>"] = actions.goto_file_selection_tabedit, ["<C-u>"] = actions.preview_scrolling_up, ["<C-d>"] = actions.preview_scrolling_down, @@ -30,10 +30,10 @@ mappings.default_mappings = config.values.default_mappings or { n = { ["<esc>"] = actions.close, - ["<CR>"] = actions.select + actions.center, - ["<C-x>"] = actions.hselect, - ["<C-v>"] = actions.vselect, - ["<C-t>"] = actions.tabselect, + ["<CR>"] = actions.goto_file_selection_edit + actions.center, + ["<C-x>"] = actions.goto_file_selection_split, + ["<C-v>"] = actions.goto_file_selection_vsplit, + ["<C-t>"] = actions.goto_file_selection_tabedit, -- TODO: This would be weird if we switch the ordering. ["j"] = actions.move_selection_next, |
