Rename :delete-message et al to :delete et al
This commit is contained in:
parent
fa5d8d7a00
commit
455c6f0b77
5 changed files with 20 additions and 16 deletions
|
@ -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 {
|
|
@ -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()
|
|
@ -7,6 +7,7 @@ import (
|
|||
)
|
||||
|
||||
func init() {
|
||||
register("view", ViewMessage)
|
||||
register("view-message", ViewMessage)
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue