aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Partin <tristan@partin.io>2024-03-07 17:01:44 +0000
committerRobin Jarry <robin@jarry.cc>2024-03-10 18:53:37 +0100
commitf9b41b24b719310be756a77f9f9d49e69fa5aa72 (patch)
tree5537fba072a2f5fd55d7ef7be0ecbdad7acd107a
parent1ec7feaf9b684f590a7121d33dbf8713f1b435e1 (diff)
downloadaerc-f9b41b24b719310be756a77f9f9d49e69fa5aa72.tar.gz
aerc-f9b41b24b719310be756a77f9f9d49e69fa5aa72.zip
quit: add :q alias
This used to work, but after f3a61a34 (where :query) was added, we had two commands which then started with q. So, the automatic alias stopped working. Changelog-added: Specify a ":q" alias for quit. Signed-off-by: Tristan Partin <tristan@partin.io> Acked-by: Moritz Poldrack <moritz@poldrack.dev> Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r--commands/quit.go2
-rw-r--r--doc/aerc.1.scd3
2 files changed, 3 insertions, 2 deletions
diff --git a/commands/quit.go b/commands/quit.go
index aa996422..e17200ef 100644
--- a/commands/quit.go
+++ b/commands/quit.go
@@ -19,7 +19,7 @@ func (Quit) Context() CommandContext {
}
func (Quit) Aliases() []string {
- return []string{"quit", "exit"}
+ return []string{"quit", "q", "exit"}
}
type ErrorExit int
diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd
index 2a20213a..a2d4c922 100644
--- a/doc/aerc.1.scd
+++ b/doc/aerc.1.scd
@@ -254,7 +254,8 @@ These commands work in any context.
Suspends the aerc process. Some ongoing connections may be terminated.
*:quit* [*-f*]++
-*:exit* [*-f*]
+*:exit* [*-f*]++
+*:q* [*-f*]
Exits aerc. If a task is being performed that should not be interrupted
(like sending a message), a normal quit call might fail. In this case,
closing aerc can be forced with the *-f* option.