diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-07-17 22:38:29 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-07-17 22:38:29 +0000 |
commit | 7cdeeeae6409bfe474baf9dd555cf51d8212d6ed (patch) | |
tree | a478c8d9379a05b3382406a30c1149d50e7700dc /man.1 | |
parent | 2b56f6d999fa4eaa5790ac8a55e49a0060a44a7f (diff) | |
download | mandoc-7cdeeeae6409bfe474baf9dd555cf51d8212d6ed.tar.gz |
Initial, still somewhat experimental implementation to leverage
less(1) -T and :t ctags(1)-like functionality to jump to the
definitions of various terms inside manual pages.
To be polished in the tree, so bear with me and report issues.
Technically, if less(1) is used as a pager, information is collected
by the mdoc(7) terminal formatter, first stored using the ohash
library, then ultimately written to a temporary file which is passed
to less via -T. No change intended for other output formatters or
when running without a pager.
Based on an idea from Kristaps using feedback from many, in particular
phessler@ nicm@ millert@ halex@ doug@ kspillner@ deraadt@.
Diffstat (limited to 'man.1')
-rw-r--r-- | man.1 | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -360,6 +360,13 @@ Any non-empty value of the environment variable .Ev MANPAGER will be used instead of the standard pagination program, .Xr more 1 . +If +.Xr less 1 +is used, the interactive +.Ic :t +command can be used to go to the definitions of various terms, for +example command line options, command modifiers, internal commands, +and environment variables. .It Ev MANPATH The standard search path used by .Nm |