Timeline for How does vim catch mouse scroll events?
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 18, 2023 at 19:20 | answer | added | Thomas Dickey | timeline score: 0 | |
| Aug 18, 2023 at 18:43 | comment | added | user129393192 | I meant 1000. It's been revised. This is my main ongoing issue with my text editor. As for highlighting, you can simply do it and it highlights as usual (blue background, like the rest of the computer). Within my application, highlighting is not possible. It's the same within emacs (where the behavior is like vim, and click events seem to be ignored). | |
| Aug 18, 2023 at 18:41 | history | edited | user129393192 | CC BY-SA 4.0 |
edited body
|
| Aug 18, 2023 at 9:52 | comment | added | egmont |
If mouse support (1000, 1002, 1003-ish) is enabled by an app then it gets click events; external copy-pasting action is still present in most terminal emulators if you also press Shift. If not then it doesn't get clicks; it might get scrolls converted into up/down keypresses depending on the 1007 mode. You cannot have proper mouse reporting (even if it's just scroll events) and shift-less external copy-paste at the same time. When you say you can highlight text as normal in vim, are you absolutely sure you're not confusing vim's own text selection mechanisn with the terminals?
|
|
| Aug 18, 2023 at 9:49 | comment | added | egmont |
Run vim (or whatever other utility) under script and then study the resulting typescript file to see the commands it sends to the terminal. Edit the file in various ways (e.g. keep just the part that corresponds to the startup only and not the shutdown of the app), or experiment in other ways (bisect etc.), replay with cat and see if it provides the desired result.
|
|
| Aug 18, 2023 at 9:46 | comment | added | egmont | (Are you the guy I was talking to about mouse support around 2 weeks ago?) 1007 is not mouse tracking and won't send you click events, so I suspect a typo or other mistake in your post, could you please revise it? | |
| Aug 18, 2023 at 0:20 | history | asked | user129393192 | CC BY-SA 4.0 |