aboutsummaryrefslogtreecommitdiffstats
path: root/app/msgviewer.go
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2023-11-24 16:03:03 +0100
committerRobin Jarry <robin@jarry.cc>2023-12-30 15:42:09 +0100
commitcf47763e5582563f712b4a40a9b299378aba9003 (patch)
treeaf83b863a644a90a69eef891a4ce06023224a213 /app/msgviewer.go
parentfdd9f7991aa50bd99d21c178a2816fc075eead6b (diff)
downloadaerc-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/msgviewer.go')
-rw-r--r--app/msgviewer.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/msgviewer.go b/app/msgviewer.go
index abed93fd..e45a6d3e 100644
--- a/app/msgviewer.go
+++ b/app/msgviewer.go
@@ -421,12 +421,7 @@ func NewPartViewer(
pagerin io.WriteCloser
term *Terminal
)
- cmds := []string{
- config.Viewer.Pager,
- os.Getenv("PAGER"),
- "less -Rc",
- }
- pagerCmd, err := cmdFallbackSearch(cmds)
+ pagerCmd, err := CmdFallbackSearch(config.PagerCmds(), false)
if err != nil {
acct.PushError(fmt.Errorf("could not start pager: %w", err))
return nil, err