diff options
author | Koni Marti <koni.marti@gmail.com> | 2023-11-24 16:03:03 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-12-30 15:42:09 +0100 |
commit | cf47763e5582563f712b4a40a9b299378aba9003 (patch) | |
tree | af83b863a644a90a69eef891a4ce06023224a213 /app/compose.go | |
parent | fdd9f7991aa50bd99d21c178a2816fc075eead6b (diff) | |
download | aerc-cf47763e5582563f712b4a40a9b299378aba9003.tar.gz |
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>
Diffstat (limited to 'app/compose.go')
-rw-r--r-- | app/compose.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/compose.go b/app/compose.go index 75f90f12..35fdd9bf 100644 --- a/app/compose.go +++ b/app/compose.go @@ -1320,13 +1320,7 @@ func (c *Composer) showTerminal() error { if c.editor != nil { c.editor.Destroy() } - cmds := []string{ - config.Compose.Editor, - os.Getenv("EDITOR"), - "vi", - "nano", - } - editorName, err := cmdFallbackSearch(cmds) + editorName, err := CmdFallbackSearch(config.EditorCmds(), false) if err != nil { c.acct.PushError(fmt.Errorf("could not start editor: %w", err)) } |