config: add a [mouse-bindings] table for rebindable buttons

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I8b4bfdd5c594a29f06c73aed0f7b07a46a6a6964
This commit is contained in:
raf 2026-06-26 11:36:52 +03:00
commit 3e49e94f56
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF
5 changed files with 177 additions and 15 deletions

View file

@ -123,6 +123,22 @@ _unicode-input_.
"Ctrl+`" = "none"
```
# [mouse-bindings]
A table of _button-chord_ = _action_ entries, merged over the built-in
defaults. A chord is optional modifiers and a button joined by _+_, e.g.
_"Shift+Middle"_. Buttons are _Left_, _Middle_, and _Right_. The actions are
the same set as *[key-bindings]*. An action of _"none"_ unbinds the chord. The
left button's select/drag is a built-in gesture and is not rebindable.
The only default is _"Middle" = "paste-primary"_.
```
[mouse-bindings]
"Right" = "paste"
"Middle" = "none"
```
# [shell-integration]
Behaviour driven by *OSC 7* (cwd) and *OSC 133* (prompt) marks.