Adds split and tabedit mappings. Adopted by fzf.vim (#29)

This commit is contained in:
Simon Hauser
2020-09-04 21:48:00 +02:00
committed by GitHub
parent f5f1275411
commit 4abb5f7867
2 changed files with 26 additions and 4 deletions

View File

@@ -35,12 +35,18 @@ local default_mappings = {
["<Down>"] = actions.move_selection_next,
["<Up>"] = actions.move_selection_previous,
["<CR>"] = actions.goto_file_selection,
["<CR>"] = actions.goto_file_selection_edit,
["<C-x>"] = actions.goto_file_selection_split,
["<C-v>"] = actions.goto_file_selection_vsplit,
["<C-t>"] = actions.goto_file_selection_tabedit,
},
n = {
["<esc>"] = actions.close,
["<CR>"] = actions.goto_file_selection,
["<CR>"] = actions.goto_file_selection_edit,
["<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,