summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--commands/account/delete.go (renamed from commands/account/delete-message.go)3
-rw-r--r--commands/account/next.go (renamed from commands/account/next-message.go)4
-rw-r--r--commands/account/select.go (renamed from commands/account/select-message.go)0
-rw-r--r--commands/account/view.go (renamed from commands/account/view-message.go)1
-rw-r--r--config/binds.conf28
5 files changed, 20 insertions, 16 deletions
diff --git a/commands/account/delete-message.go b/commands/account/delete.go
index d6b669e..65d6eb9 100644
--- a/commands/account/delete-message.go
+++ b/commands/account/delete.go
@@ -11,12 +11,13 @@ import (
 )
 
 func init() {
+	register("delete", DeleteMessage)
 	register("delete-message", DeleteMessage)
 }
 
 func DeleteMessage(aerc *widgets.Aerc, args []string) error {
 	if len(args) != 1 {
-		return errors.New("Usage: :delete-message")
+		return errors.New("Usage: :delete")
 	}
 	acct := aerc.SelectedAccount()
 	if acct == nil {
diff --git a/commands/account/next-message.go b/commands/account/next.go
index f13ea5a..7e8541f 100644
--- a/commands/account/next-message.go
+++ b/commands/account/next.go
@@ -10,7 +10,9 @@ import (
 )
 
 func init() {
+	register("next", NextPrevMessage)
 	register("next-message", NextPrevMessage)
+	register("prev", NextPrevMessage)
 	register("prev-message", NextPrevMessage)
 }
 
@@ -45,7 +47,7 @@ func NextPrevMessage(aerc *widgets.Aerc, args []string) error {
 		n = int(float64(acct.Messages().Height()) * (float64(n) / 100.0))
 	}
 	for ; n > 0; n-- {
-		if args[0] == "prev-message" {
+		if args[0] == "prev-message" || args[0] == "prev" {
 			acct.Messages().Prev()
 		} else {
 			acct.Messages().Next()
diff --git a/commands/account/select-message.go b/commands/account/select.go
index bd44c1b..bd44c1b 100644
--- a/commands/account/select-message.go
+++ b/commands/account/select.go
diff --git a/commands/account/view-message.go b/commands/account/view.go
index 4db5c95..40abec3 100644
--- a/commands/account/view-message.go
+++ b/commands/account/view.go
@@ -7,6 +7,7 @@ import (
 )
 
 func init() {
+	register("view", ViewMessage)
 	register("view-message", ViewMessage)
 }
 
diff --git a/config/binds.conf b/config/binds.conf
index 4d184fb..058b2d0 100644
--- a/config/binds.conf
+++ b/config/binds.conf
@@ -8,26 +8,26 @@
 [messages]
 q = :quit<Enter>
 
-j = :next-message<Enter>
-<Down> = :next-message<Enter>
-<C-d> = :next-message 50%<Enter>
-<C-f> = :next-message 100%<Enter>
-<PgDn> = :next-message -s 100%<Enter>
+j = :next<Enter>
+<Down> = :next<Enter>
+<C-d> = :next 50%<Enter>
+<C-f> = :next 100%<Enter>
+<PgDn> = :next -s 100%<Enter>
 
-k = :prev-message<Enter>
-<Up> = :prev-message<Enter>
-<C-u> = :prev-message 50%<Enter>
-<C-b> = :prev-message 100%<Enter>
-<PgUp> = :prev-message -s 100%<Enter>
-g = :select-message 0<Enter>
-G = :select-message -1<Enter>
+k = :prev<Enter>
+<Up> = :prev<Enter>
+<C-u> = :prev 50%<Enter>
+<C-b> = :prev 100%<Enter>
+<PgUp> = :prev -s 100%<Enter>
+g = :select 0<Enter>
+G = :select -1<Enter>
 
 J = :next-folder<Enter>
 K = :prev-folder<Enter>
 
-<Enter> = :view-message<Enter>
+<Enter> = :view<Enter>
 d = :confirm 'Really delete this message?' ':delete-message<Enter>'<Enter>
-D = :delete-message<Enter>
+D = :delete<Enter>
 
 rr = :reply<Enter>
 rq = :reply -q<Enter>
0 .' href='/akkartik/mu/commit/html/subx/057write.subx.html?h=hlt&id=ce2c1efc41470764126e9a1a7f4e0cfec4213587'>ce2c1efc ^
104e521c ^















c8a3ccbe ^
104e521c ^
c56d803c ^















d1c9392a ^

14a38052 ^


d1c9392a ^
e99038ea ^
7e7a8a6e ^
b1635a5c ^
33352536 ^

e99038ea ^
33352536 ^
52daf072 ^
e99038ea ^
33352536 ^

e99038ea ^
03a1de45 ^
e99038ea ^
33352536 ^
e99038ea ^



33352536 ^










e99038ea ^
33352536 ^
e99038ea ^
33352536 ^

e99038ea ^
33352536 ^

e99038ea ^
8aeb85f0 ^
e99038ea ^
33352536 ^


e99038ea ^
33352536 ^



e99038ea ^
b1635a5c ^
33352536 ^

e99038ea ^








33352536 ^
e99038ea ^
6e181e7f ^
e99038ea ^




33352536 ^
e99038ea ^




33352536 ^

e99038ea ^


33352536 ^
e99038ea ^









33352536 ^
e99038ea ^
6e181e7f ^
e99038ea ^




33352536 ^
e99038ea ^






33352536 ^
e99038ea ^




33352536 ^

e99038ea ^


33352536 ^
e99038ea ^




8aeb85f0 ^
e99038ea ^




52daf072 ^





104e521c ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223