From 15214b7c98cbe77bddb2a52e0849abdfa7953747 Mon Sep 17 00:00:00 2001 From: tjp Date: Tue, 9 Jan 2024 08:26:52 -0700 Subject: "outline" command --- help.go | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'help.go') diff --git a/help.go b/help.go index 6e50ff7..3d5cd88 100644 --- a/help.go +++ b/help.go @@ -8,7 +8,7 @@ import ( var ErrNotAHelpTopic = errors.New("don't recognize that help topic") -func Help(state *BrowserState, topic string) error { +func Help(_ *BrowserState, topic string) error { if topic == "" { topic = "topics" } @@ -42,10 +42,11 @@ root Root up back forward next previous reload print pipe -help links history +about help +go history save +links outline tour mark identity -go save -about quit +quit Any command may be written as any prefix sufficiently long to be unique. So for instance, "reload" can be specified by just typing "re". This is @@ -277,6 +278,12 @@ starting points. l[inks] ------- Shortens the current page by only displaying the links in it. +`[1:], + + "outline": ` +o[utline] +--------- +Shortens the current page by online displaying the headers in it. `[1:], "history": ` -- cgit v1.2.3