summaryrefslogtreecommitdiff
path: root/command.go
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2024-01-09 08:26:52 -0700
committertjp <tjp@ctrl-c.club>2024-01-09 08:31:09 -0700
commit15214b7c98cbe77bddb2a52e0849abdfa7953747 (patch)
treecbfaff39e98d9cbf5849b01fd714c9a4c758108c /command.go
parent6e0ed2c347f8da8df8e30b920e14968b7240d8ee (diff)
"outline" command
Diffstat (limited to 'command.go')
-rw-r--r--command.go6
1 files changed, 6 insertions, 0 deletions
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":