summaryrefslogtreecommitdiff
path: root/lua/telescope/mappings.lua
diff options
context:
space:
mode:
authoranott03 <amitav_nott@ryecountryday.org>2021-01-25 13:20:01 -0500
committerGitHub <noreply@github.com>2021-01-25 19:20:01 +0100
commitccbb7f56384921a81813f0f9ebc85cdba0b7c255 (patch)
tree107739be676bda2e004e191e6a7c114aa172e399 /lua/telescope/mappings.lua
parent5bf9e14f10023d5ab8182b33a80fca68cd174f79 (diff)
fix: move to actions.select as default action (#465)
Diffstat (limited to 'lua/telescope/mappings.lua')
-rw-r--r--lua/telescope/mappings.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/lua/telescope/mappings.lua b/lua/telescope/mappings.lua
index 499be3e..38f238c 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.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,
+ ["<CR>"] = actions.select + actions.center,
+ ["<C-x>"] = actions.hselect,
+ ["<C-v>"] = actions.vselect,
+ ["<C-t>"] = actions.tabselect,
["<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.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,
+ ["<CR>"] = actions.select + actions.center,
+ ["<C-x>"] = actions.hselect,
+ ["<C-v>"] = actions.vselect,
+ ["<C-t>"] = actions.tabselect,
-- TODO: This would be weird if we switch the ordering.
["j"] = actions.move_selection_next,