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