diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-10 21:15:24 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-10 21:15:24 -0400 |
commit | b60999c39e11bf4d1e236f2b10a2f895b44d23fb (patch) | |
tree | 8ce8023277815a7d1f25dc7c48fa910c698d5b1b /commands/next-folder.go | |
parent | 62862d8a9e7f684bc3ff4e9ea115678ff44d8644 (diff) | |
download | aerc-b60999c39e11bf4d1e236f2b10a2f895b44d23fb.tar.gz |
Start building out command subsystem
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 0000000..02975e1 --- /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 +} |