-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
I have configure Telescope to close the window with the q key:
-- somewhere in my config
{
'nvim-telescope/telescope.nvim',
config = function()
-- ...
require('telescope').setup {
defaults = {
-- ...
mappings = {
n = {
['q'] = require('telescope.actions').close,
-- ...
}
}
}
}
end
}I have remapped the q binding in Neoclip for the normal mode so they don't overlap, here's the full config:
{
'AckslD/nvim-neoclip.lua',
dependencies = {
{ 'nvim-telescope/telescope.nvim' },
},
config = function()
require('neoclip').setup {
enable_macro_history = false,
initial_mode = 'normal',
keys = {
telescopcope = {
n = {
reply = '<c-q>',
},
},
},
on_select = {
move_to_front = true,
},
preview = false,
}
end,
},
When close Telescope with the q key it seems that it is pasting the selected item, but with some weird behavior (seems like it is executing n to jump to the next occurrence of the last searched pattern, followed by p to paste). I tried overriding the macro in the " registry to validate if it was replying the macro, but seems it didn't.
Here's a video where I open the clipboard list and close it with Esc a couple of times, then after I close it with q to showcase the difference in behavior (sec 17).
Screen.Recording.2025-04-19.at.3.31.14.p.m.mov
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels