foot/doc
Daniel Eklöf fe7aa25ad8
input: make wheel events mappable
Un-grabbed wheel events are now passed through the mouse binding
matching logic, instead of being hardcoded to scrolling the terminal
contents.

They are mappable through the BTN_BACK and BTN_FORWARD buttons.

Since they're not actually button *presses*, they never generate a
click count other than 1. This limitation is documented, but not
checked in the config. This means it's possible to create bindings
like "BTN_BACK+3" (i.e. triple "click"). They will however never
trigger.

The old, hardcoded logic is now accessible through the new
scrollback-up-mouse and scrollback-down-mouse mouse
bindings. They (obiously) default to BTN_BACK and BTN_FORWARD,
respectively.

Example usage: keep the default of scrolling terminal contents with
the wheel, when used without modifiers, but map Control+wheel to font
zoom in/out:

  [mouse-bindings]
  font-increase=Control+BTN_FORWARD
  font-decrease=Control+BTN_BACK

(this also keeps the default key bindings to zoom in/out; ctrl-+ and
ctrl+-)

Closes #1077
2023-09-18 16:36:39 +02:00
..
benchmark.md doc: benchmarks: update with desktop results for 1.12.1 (r9) 2022-05-12 13:10:24 +02:00
foot-ctlseqs.7.scd csi: implement "CSI ? m" 2023-04-26 18:30:09 +02:00
foot.1.scd Update documentation regarding systemd units 2023-07-21 08:12:55 +02:00
foot.ini.5.scd input: make wheel events mappable 2023-09-18 16:36:39 +02:00
footclient.1.scd footclient: fallback logic when socket paths don't exist 2023-07-21 08:12:49 +02:00
meson.build meson: use meson feed feature for scdoc input 2023-06-14 17:15:20 +00:00
sixel-wow.png README: add screenshot of sixel graphics 2020-02-22 22:04:28 +01:00