diff options
Diffstat (limited to 'lua/telescope')
| -rw-r--r-- | lua/telescope/builtin/__internal.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lua/telescope/builtin/__internal.lua b/lua/telescope/builtin/__internal.lua index d0f32a3..7f85916 100644 --- a/lua/telescope/builtin/__internal.lua +++ b/lua/telescope/builtin/__internal.lua @@ -449,12 +449,19 @@ internal.quickfixhistory = function(opts) end, }, sorter = conf.generic_sorter(opts), - attach_mappings = function(_, _) + attach_mappings = function(_, map) action_set.select:replace(function(prompt_bufnr) local nr = action_state.get_selected_entry().nr actions.close(prompt_bufnr) internal.quickfix { nr = nr } end) + + map({ "i", "n" }, "<C-q>", function(prompt_bufnr) + local nr = action_state.get_selected_entry().nr + actions.close(prompt_bufnr) + vim.cmd(nr .. "chistory") + vim.cmd "copen" + end) return true end, }) |
