1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-02-22 14:53:57 +01:00
aerc/config/cmds.go
Koni Marti cf47763e55 patch/list: add list sub-cmd
Implement the :patch list command. List the the current project and add
a flag to list all saved projects. Use the pager to display the data and
extract the pager commands and move them into the config package.

Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2023-12-30 15:42:09 +01:00

22 lines
249 B
Go

package config
import (
"os"
)
func EditorCmds() []string {
return []string{
Compose.Editor,
os.Getenv("EDITOR"),
"vi",
"nano",
}
}
func PagerCmds() []string {
return []string{
Viewer.Pager,
os.Getenv("PAGER"),
"less -Rc",
}
}