Open AntonC9018 opened 7 months ago
This is just the behavior of the prompt buffer using vim's buftype='prompt'
option.
Normal commands are only available on the last line of the buffer. So p
will work on the if you type in insert mode first to create a line and go back to normal mode and try to paste. It's a little weird, I'd admit. I can't seem to get u
to work but <c-r>
works and :undo
works. Maybe some of this behavior is a bug, maybe there's a good reason I'm not sure.
But part of the point of prompt buffers is to restrict available commands so plugins using them don't have to handle arbitrary commands.
I'm not sure it's telescope's responsibility to "fix" them. Even if we wanted to, it could result in even less intuitive behaviors.
Sure... Is there a way to change the buffer type telescope uses then? Because it's unintuitive imo that paste works in insert mode but not in normal mode, it just makes no sense whatsoever to me as a user
I think that would break more things 😕
Description
Some default vim normal mode mappings don't work, while in a telescope window, e.g.
u
,p
, possibly others.Neovim version
Operating system and version
macOS Sonoma 14.2.1
Telescope version / branch / rev
0.1.5
checkhealth telescope
Steps to reproduce
:Telescope
Esc
to enter normal modeVy
to copy (works, but V selects the caret too, which is intended?)p
doesn't work.Expected behavior
No response
Actual behavior
Pasting doesn't work?
Minimal config