aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-06-24 13:52:04 +0200
committerRobin Jarry <robin@jarry.cc>2023-07-08 23:07:46 +0200
commitc0d4691727e1cb635cbbb9714392e14d23a9af72 (patch)
treea8707bafc2331332edd7a322818c3fc451e6fb27
parent300021cc93c32956342107b754b5406d5a030413 (diff)
downloadaerc-c0d4691727e1cb635cbbb9714392e14d23a9af72.tar.gz
binds: add more default binds
These are from my own config. They may be helpful to others. Remove "q" to quit from the message list without confirmation. Add <ctrl-c> and <ctrl-q> to quit from any context. Suggested-by: Bence Ferdinandy <bence@ferdinandy.com> Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Bence Ferdinandy <bence@ferdinandy.com>
-rw-r--r--config/binds.conf35
1 files changed, 33 insertions, 2 deletions
diff --git a/config/binds.conf b/config/binds.conf
index e7a743fb..fbc157b3 100644
--- a/config/binds.conf
+++ b/config/binds.conf
@@ -2,12 +2,16 @@
# To use '=' in a key sequence, substitute it with "Eq": "<Ctrl+Eq>"
# If you wish to bind #, you can wrap the key sequence in quotes: "#" = quit
<C-p> = :prev-tab<Enter>
+<C-PgUp> = :prev-tab<Enter>
<C-n> = :next-tab<Enter>
+<C-PgDn> = :next-tab<Enter>
<C-t> = :term<Enter>
? = :help keys<Enter>
+<C-c> = :prompt 'Quit?' quit<Enter>
+<C-q> = :prompt 'Quit?' quit<Enter>
[messages]
-q = :quit<Enter>
+q = :prompt 'Quit?' quit<Enter>
j = :next<Enter>
<Down> = :next<Enter>
@@ -24,11 +28,16 @@ g = :select 0<Enter>
G = :select -1<Enter>
J = :next-folder<Enter>
+<C-Down> = :next-folder<Enter>
K = :prev-folder<Enter>
+<C-Up> = :prev-folder<Enter>
H = :collapse-folder<Enter>
+<C-Left> = :collapse-folder<Enter>
L = :expand-folder<Enter>
+<C-Right> = :expand-folder<Enter>
v = :mark -t<Enter>
+<Space> = :mark -t<Enter>:next<Enter>
V = :mark -v<Enter>
T = :toggle-threads<Enter>
@@ -36,9 +45,11 @@ T = :toggle-threads<Enter>
<Enter> = :view<Enter>
d = :prompt 'Really delete this message?' 'delete-message'<Enter>
D = :delete<Enter>
-A = :archive flat<Enter>
+a = :archive flat<Enter>
+A = :unmark -a<Enter>:mark -T<Enter>:archive flat<Enter>
C = :compose<Enter>
+m = :compose<Enter>
rr = :reply -a<Enter>
rq = :reply -aq<Enter>
@@ -56,6 +67,9 @@ n = :next-result<Enter>
N = :prev-result<Enter>
<Esc> = :clear<Enter>
+s = :split<Enter>
+S = :vsplit<Enter>
+
[messages:folder=Drafts]
<Enter> = :recall<Enter>
@@ -63,6 +77,7 @@ N = :prev-result<Enter>
/ = :toggle-key-passthrough<Enter>/
q = :close<Enter>
O = :open<Enter>
+o = :open<Enter>
S = :save<space>
| = :pipe<space>
D = :delete<Enter>
@@ -78,9 +93,13 @@ Rq = :reply -q<Enter>
H = :toggle-headers<Enter>
<C-k> = :prev-part<Enter>
+<C-Up> = :prev-part<Enter>
<C-j> = :next-part<Enter>
+<C-Down> = :next-part<Enter>
J = :next<Enter>
+<C-Right> = :next<Enter>
K = :prev<Enter>
+<C-Left> = :prev<Enter>
[view::passthrough]
$noinherit = true
@@ -93,22 +112,32 @@ $ex = <C-x>
$noinherit = true
$ex = <C-x>
<C-k> = :prev-field<Enter>
+<C-Up> = :prev-field<Enter>
<C-j> = :next-field<Enter>
+<C-Down> = :next-field<Enter>
<A-p> = :switch-account -p<Enter>
+<C-Left> = :switch-account -p<Enter>
<A-n> = :switch-account -n<Enter>
+<C-Right> = :switch-account -n<Enter>
<tab> = :next-field<Enter>
<backtab> = :prev-field<Enter>
<C-p> = :prev-tab<Enter>
+<C-PgUp> = :prev-tab<Enter>
<C-n> = :next-tab<Enter>
+<C-PgDn> = :next-tab<Enter>
[compose::editor]
# Keybindings used when the embedded terminal is selected in the compose view
$noinherit = true
$ex = <C-x>
<C-k> = :prev-field<Enter>
+<C-Up> = :prev-field<Enter>
<C-j> = :next-field<Enter>
+<C-Down> = :next-field<Enter>
<C-p> = :prev-tab<Enter>
+<C-PgDn> = :next-tab<Enter>
<C-n> = :next-tab<Enter>
+<C-PgDn> = :next-tab<Enter>
[compose::review]
# Keybindings used when reviewing a message to be sent
@@ -127,3 +156,5 @@ $ex = <C-x>
<C-p> = :prev-tab<Enter>
<C-n> = :next-tab<Enter>
+<C-PgUp> = :prev-tab<Enter>
+<C-PgDn> = :next-tab<Enter>