~sircmpwn/aerc

455c6f0b774bb5e37906dd3fb8c786892f0b1519 — Drew DeVault 1 year, 6 months ago fa5d8d7
Rename :delete-message et al to :delete et al
5 files changed, 20 insertions(+), 16 deletions(-)

R commands/account/{delete-message.go => delete.go}
R commands/account/{next-message.go => next.go}
R commands/account/{select-message.go => select.go}
R commands/account/{view-message.go => view.go}
M config/binds.conf
R commands/account/delete-message.go => commands/account/delete.go +2 -1
@@ 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 {

R commands/account/next-message.go => commands/account/next.go +3 -1
@@ 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()

R commands/account/select-message.go => commands/account/select.go +0 -0

R commands/account/view-message.go => commands/account/view.go +1 -0
@@ 7,6 7,7 @@ import (
)

func init() {
	register("view", ViewMessage)
	register("view-message", ViewMessage)
}


M config/binds.conf => config/binds.conf +14 -14
@@ 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>