aboutsummaryrefslogtreecommitdiffstats
path: root/commands/prev-folder.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/prev-folder.go')
-rw-r--r--commands/prev-folder.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/commands/prev-folder.go b/commands/prev-folder.go
new file mode 100644
index 00000000..a38214fc
--- /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
+}