diff options
Diffstat (limited to 'commands/prev-folder.go')
-rw-r--r-- | commands/prev-folder.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/commands/prev-folder.go b/commands/prev-folder.go new file mode 100644 index 0000000..a38214f --- /dev/null +++ b/commands/prev-folder.go @@ -0,0 +1,15 @@ +package commands + +import ( + "git.sr.ht/~sircmpwn/aerc2/widgets" +) + +func init() { + Register("prev-folder", PrevFolder) +} + +func PrevFolder(aerc *widgets.Aerc, cmd string) error { + acct := aerc.SelectedAccount() + acct.Directories().Prev() + return nil +} |