From 2eee2b05608cb57051bac5774d03c3c7fc5f110b Mon Sep 17 00:00:00 2001 From: tjp Date: Wed, 3 Jan 2024 20:16:51 -0700 Subject: auto_pager config option --- help.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'help.go') diff --git a/help.go b/help.go index 16fda43..9a72c56 100644 --- a/help.go +++ b/help.go @@ -27,7 +27,7 @@ var helpTopics = map[string]string{ help topics ----------- commands: Basics of x-1 commands, and a full listing of them. Each - command is also its own help topic. + command also has its own help topic. urls: The forms of URLs which can be entered into x-1 commands. mark: Information on the "mark" meta-command. tour: Information about the "tour" meta-command. @@ -96,9 +96,12 @@ The section "[main]" contains general configuration options: link indices. * download_folder (string): The folder in which to store files saved by the "save" command. This string may also start with "~", which - stands in for $HOME. The default is "~" (or $HOME). + stands in for $HOME. The default is "~" (the user's home directory). * quiet (boolean): Disables automatically printing the page after any navigation action. The default is false. + * auto_pager (boolean): Sends pages through "less -F", where the -F + switch disables the pager if the output fits in a single screen. + This is true by default. `[1:], @@ -213,6 +216,11 @@ Displays the current page. This will happen anyway by default with any navigation action, but the "quiet" configuration option can disable that. + +By default, the print action (whether automatic or upon the print +command) will pipe the output through "less -F", where the -F switch +disables the pager if the output fits in one screen. This can be +disabled with the "auto_pager" configuration option. `[1:], "pipe": ` -- cgit v1.2.3