diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2021-02-27 15:06:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-27 21:06:04 +0100 |
| commit | 11674ac021e39f92eb51d2884904b0300c5133a3 (patch) | |
| tree | ced317f650b35b9ea7466097a730f76740de1725 /lua/telescope/mappings.lua | |
| parent | ca92ec1a830a61a0b88fff925f2146ab46e0f7c9 (diff) | |
feat: multi selection. Only integrates with send_selected_to_qflist (#551)
This will not yet work with select actions. More work is needed in that case.
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
Diffstat (limited to 'lua/telescope/mappings.lua')
| -rw-r--r-- | lua/telescope/mappings.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lua/telescope/mappings.lua b/lua/telescope/mappings.lua index 9490309..2e586d4 100644 --- a/lua/telescope/mappings.lua +++ b/lua/telescope/mappings.lua @@ -24,8 +24,9 @@ mappings.default_mappings = config.values.default_mappings or { ["<C-u>"] = actions.preview_scrolling_up, ["<C-d>"] = actions.preview_scrolling_down, - -- TODO: When we implement multi-select, you can turn this back on :) - -- ["<Tab>"] = actions.add_selection, + ["<Tab>"] = actions.toggle_selection + actions.move_selection_worse, + ["<C-q>"] = actions.send_to_qflist + actions.open_qflist, + ["<M-q>"] = actions.send_selected_to_qflist + actions.open_qflist, }, n = { @@ -35,6 +36,10 @@ mappings.default_mappings = config.values.default_mappings or { ["<C-v>"] = actions.select_vertical, ["<C-t>"] = actions.select_tab, + ["<Tab>"] = actions.toggle_selection + actions.move_selection_worse, + ["<C-q>"] = actions.send_to_qflist + actions.open_qflist, + ["<M-q>"] = actions.send_selected_to_qflist + actions.open_qflist, + -- TODO: This would be weird if we switch the ordering. ["j"] = actions.move_selection_next, ["k"] = actions.move_selection_previous, |
