Repository navigation
Implement option to ignore pasted text in normal mode - #1271
Conversation
pgaskin
left a comment
There was a problem hiding this comment.
Tested with xfce4-terminal. Works as expected.
- Terminals not supporting bracketed paste should ignore the enable/disable control sequence (tested by changing the number to a non-existent one, plus this is the same as how nano does it).
- Same behaviour as before when disabled.
- Ignores pasted text (except when in command/search mode) when enabled. Tested both Ctrl+Shift+v and middle-click.
- CSI parsing works correctly and follows the spec.
https://copr.fedorainfracloud.org/coprs/pgaskin/cmus-testing/build/6176496/
https://github.com/pgaskin/cmus/commits/001f1a4806e48c9f298e41d047e43d669c9475c8
https://nightly.link/pgaskin/rpms/actions/runs/5568630004
|
Thanks, will review later this week. |
5994f33 to
1e0f04e
Compare
1e0f04e to
92b58f8
Compare
pgaskin
left a comment
There was a problem hiding this comment.
Fixed the silly mistakes I made. Tested. Works as expected.
https://copr.fedorainfracloud.org/coprs/pgaskin/cmus-testing/build/6204539/
https://github.com/pgaskin/cmus/commits/def777cecad32711b30da1f0b3b43a9d6481d19e
https://nightly.link/pgaskin/rpms/actions/runs/5633236513
ec4c79c to
4d69fea
Compare
This uses bracketed paste, where supported (xterm, win10, iterm2, etc), to prevent pasted text from being interpreted as commands unless the new
block_key_pasteoption is disabled.closes #1270