diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2020-09-04 21:48:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-04 15:48:00 -0400 |
| commit | 4abb5f7867fb087aa69bcd49d40537609a1e2e46 (patch) | |
| tree | 03ba0f5fce14e218b80583bb115e4c4fd7c1b60e /lua/telescope/pickers.lua | |
| parent | f5f127541127ca5a773a9b4ba8434d5b88871335 (diff) | |
Adds split and tabedit mappings. Adopted by fzf.vim (#29)
Diffstat (limited to 'lua/telescope/pickers.lua')
| -rw-r--r-- | lua/telescope/pickers.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index 6fd7442..7819bec 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -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, |
