diff options
| author | tjp <tjp@ctrl-c.club> | 2024-01-09 08:26:52 -0700 |
|---|---|---|
| committer | tjp <tjp@ctrl-c.club> | 2024-01-09 08:31:09 -0700 |
| commit | 15214b7c98cbe77bddb2a52e0849abdfa7953747 (patch) | |
| tree | cbfaff39e98d9cbf5849b01fd714c9a4c758108c /command.go | |
| parent | 6e0ed2c347f8da8df8e30b920e14968b7240d8ee (diff) | |
"outline" command
Diffstat (limited to 'command.go')
| -rw-r--r-- | command.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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": |
