From 15214b7c98cbe77bddb2a52e0849abdfa7953747 Mon Sep 17 00:00:00 2001 From: tjp Date: Tue, 9 Jan 2024 08:26:52 -0700 Subject: "outline" command --- command.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'command.go') diff --git a/command.go b/command.go index 758b764..734aa6e 100644 --- a/command.go +++ b/command.go @@ -85,6 +85,10 @@ func ParseCommand(line string) (*Command, error) { if strings.HasPrefix("next", cmd) { return &Command{Name: "next"}, nil } + case 'o': + if strings.HasPrefix("outline", cmd) { + return &Command{Name: "outline"}, nil + } case 'p': if strings.HasPrefix("print", cmd) { return &Command{Name: "print"}, nil @@ -394,6 +398,8 @@ func RunCommand(conf *Config, cmd *Command, state *BrowserState) error { return Go(state, cmd.Args[0], conf) case "help": return Help(state, cmd.Args[0]) + case "outline": + return Outline(state, conf) case "pipe": return Pipe(state, cmd.Args[0]) case "print": -- cgit v1.2.3