fix: move to actions.select as default action (#465)

This commit is contained in:
anott03
2021-01-25 13:20:01 -05:00
committed by GitHub
parent 5bf9e14f10
commit ccbb7f5638
8 changed files with 61 additions and 54 deletions

View File

@@ -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,