Is your feature request about something that is currently impossible or hard to do? Please describe the problem.
It is difficult to perform an action after pasting text. Analogous to how TextChanged exists for every change in the file and TextYankPost for after yanking text.
Describe the solution you'd like
I want to format (gq) just-pasted text or quickly visually select it.
Describe alternatives you've considered
I currently use nnoremap gp '[v'] to visually select text after pasting (similar to gv). To simulate formatting after pasting you can use the TextChanged event, but it fires too often. In Nvim I've used the nvim_paste handler, but that only fires after external pastes (cmd+v or ctrl+shift+v).
Additional context
More context: neovim/neovim#36472
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I think this issue might interest you
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
A put can be from the expression register as well
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()