You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to automatically switch to SCROLL mode when scrolling with the mouse, or make bindings to mouse events (specifically the scroll wheel)? I'm guessing no because I can't find any such reference in the documentation or in issues/discussions... more context below.
For scrolling, I believe the dedicated SCROLL mode is superior to the NORMAL mode. So I've made some bindings like these, which work wonderfully:
I also bind Escape to return to normal mode, which also scrolls to the bottom where the prompt is.
bind"Enter""Esc" { SwitchToMode"Normal"; }
The mouse wheel will scroll the screen properly in either mode, but won't automatically switch modes. So, pressing Escape when scrolled up but in NORMAL mode will return the scroll position to the bottom, but will also send an escape sequence to the terminal.
So then pressing the up arrow won't go through my history, but instead print the keycode to the terminal:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to automatically switch to
SCROLL
mode when scrolling with the mouse, or make bindings to mouse events (specifically the scroll wheel)? I'm guessing no because I can't find any such reference in the documentation or in issues/discussions... more context below.For scrolling, I believe the dedicated
SCROLL
mode is superior to theNORMAL
mode. So I've made some bindings like these, which work wonderfully:I also bind Escape to return to normal mode, which also scrolls to the bottom where the prompt is.
The mouse wheel will scroll the screen properly in either mode, but won't automatically switch modes. So, pressing Escape when scrolled up but in
NORMAL
mode will return the scroll position to the bottom, but will also send an escape sequence to the terminal.So then pressing the up arrow won't go through my history, but instead print the keycode to the terminal:
Beta Was this translation helpful? Give feedback.
All reactions