Bind Ctrl+MouseWheel to scroll up/down (#1051)
On my system, Shift+Mouse is captured by the terminal and
Alt+Mouse only works for one of the alt keys. Hence I picked
Ctrl.
This also allows binding of Ctrl+MouseButtons (but doesn't set
any such bindings).
As a minor bonus, that should allow using Ctrl+Click to select
`lf`'s terminal without moving the cursor no matter where you
click. On tmux, this doesn't work out of the box and requires
a change to `tmux.conf` along the following lines:
bind-key -T root C-MouseDown1Pane select-pane -t = \; send-keys -M
You can omit the `send-keys -M` if you never want to pass
`Ctrl+Click` to any of your terminal apps. (Then it will work
without this PR).
This commit is contained in:
1 parent
a4fa5d36c9
commit
2fe5e4d54e
5 files changed
+14
-6
No files matched your search
+1
-1
@@ -231,7 +231,7 @@ effects:
|
||||
Enter a directory or open a file. Also works on the preview window.
|
||||
|
||||
Scroll wheel
|
||||
Scroll up or down.
|
||||
Move up or down. If Ctrl is pressed, scroll up or down.
|
||||
|
||||
# Configuration
|
||||
|
||||
|
||||
Reference in new issue
Block a user