Open peterfication opened 1 month ago
So the problem we're facing with a nicer visual range support is that it seems that Telescope does not support ranges. This means we can't allow a range mapping like it is done with :Telescope ...
but we need to exit the visual mode before opening Telescope.
If Telescope allowed a visual range, the same mapping could be used and we would be able to work on this range without the need for gv
.
Another solution would be to provide a separate command that we control the setup for because then we could add range = true
. But this would make the ergonomics of Neoclip even worse.
I haven't checked out the fzf part.
https://github.com/gbprod/yanky.nvim is possible to work around this limitation by using Telescope just as a picker so it has it's own command set up with a range and then accesses Telescope after it exited visual mode, see https://github.com/gbprod/yanky.nvim/pull/136 (if I understood it correctly).
Closes https://github.com/AckslD/nvim-neoclip.lua/issues/128