NHDaly / tmux-better-mouse-mode

A tmux plugin to better manage and configure the mouse.
MIT License
916 stars 27 forks source link

The emulate scroll for no mouse alternate buffer option breaks in irssi #31

Open danielg4 opened 7 years ago

danielg4 commented 7 years ago

The issue is that in https://github.com/NHDaly/tmux-better-mouse-mode/blob/4c686e5a1f381e072b102df63f3f8a17426fb107/scroll_copy_mode.tmux#L67 and https://github.com/NHDaly/tmux-better-mouse-mode/blob/4c686e5a1f381e072b102df63f3f8a17426fb107/scroll_copy_mode.tmux#L85 simple arrow keystrokes are sent, but irssi needs those for bash-style history browsing. There needs to be a way to send alternate keystrokes, for which bindings in irssi could then be defined.

NHDaly commented 7 years ago

Ah, just to understand, do you mean that when you enter irssi, scrolling sends up/down arrow keys, which doesn't scroll in irssi, but instead scrolls through history?

NHDaly commented 7 years ago

hmm. So one option would be to just have a blacklist to disable the emulated scrolling in certain applications.

Another could be to do what you said, and allow custom keys for certain applications, like a map.

danielg4 commented 7 years ago

As a workaround, up/down could be replaced with PgUp/PgDn, which works in both irssi and vim…

(…but not necessarily in tmux.)