mirror of
https://git.sr.ht/~rjarry/aerc
synced 2025-02-22 14:53:57 +01:00

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>
22 lines
249 B
Go
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",
|
|
}
|
|
}
|