Robin Jarry
1a75906bcb
bindings: support more modified keys
...
Add new supported keys:
Ctrl+Enter
Ctrl+Up
Ctrl+Down
Ctrl+Left
Ctrl+Right
Ctrl+PageUp
Ctrl+PageDown
Signed-off-by: Robin Jarry <robin@jarry.cc>
2021-10-28 16:22:28 +02:00
Robin Jarry
7a6c808c04
bindings: prepare for more modifers
...
Prepare to support more modifiers in key bindings.
tcell has some premade ctrl-modified keys but not all keys are
supported. Other keys must be explicitly checked with a modifier mask.
Update the KeyStroke type to carry a modifier mask. Update code
accordingly.
No functional change.
Link: https://github.com/gdamore/tcell/blob/master/key.go#L265-L275
Link: https://github.com/gdamore/tcell/blob/master/key.go#L384-L419
Signed-off-by: Robin Jarry <robin@jarry.cc>
2021-10-28 16:21:37 +02:00
y0ast
03650474e2
update tcell to v2 and enable TrueColor support
...
Also update to the tcell v2 PaletteColor api, which should keep the chosen
theme of the user intact.
Note, that if $TRUECOLOR is defined and a truecolor given, aerc will now stop
clipping the value to one of the theme colors.
Generally this is desired behaviour though.
2020-12-18 07:23:22 +01:00
Wagner Riffel
feacca3c5c
all: use fmt.Errorf for fomartting errors
...
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
2019-09-04 16:30:57 -10:00
Reto Brunner
1c419d1b4d
lowercase all key bindings
2019-07-17 15:58:46 -04:00
Drew DeVault
c4c8648cc7
Change ex command to C-x when using terminal
2019-05-24 12:45:48 -04:00
Drew DeVault
f77d7c2c3d
Add distinct keybindings for each compose view
2019-05-14 14:27:28 -04:00
Drew DeVault
6d01332b55
Rig up terminal keybinding group
2019-03-21 17:44:44 -04:00
Drew DeVault
f5bf4a9324
Add context-specific keybindings
2019-03-21 17:37:19 -04:00
Drew DeVault
79b459ecb0
Add additional context to key binding set
2019-03-21 16:35:35 -04:00
Drew DeVault
f47a927ab6
Fix special key bindings (e.g. <C-d>)
2019-03-15 21:54:44 -04:00
Drew DeVault
24dfc47126
Rig up key bindings
2019-03-15 01:46:14 -04:00
Drew DeVault
8d20e9218e
Implement key bindings subsystem
...
Which is not yet rigged up
2019-03-15 01:31:23 -04:00