diff options
author | 2018-11-22 11:30:23 +0000 | |
---|---|---|
committer | 2018-11-22 11:30:23 +0000 | |
commit | 8653551cb202b50a668483cb155c4c8272808ae8 (patch) | |
tree | 68b96cfc6b1fe47c01660e8da7930c6cb832b808 /man.1 | |
parent | 059327df544eda5a4e78c14f33c6e503ff784296 (diff) | |
download | mandoc-8653551cb202b50a668483cb155c4c8272808ae8.tar.gz mandoc-8653551cb202b50a668483cb155c4c8272808ae8.tar.zst mandoc-8653551cb202b50a668483cb155c4c8272808ae8.zip |
In -T locale (the default), -T ascii, and -T utf8 mode, provide a new
output option -O tag[=term] to move right to the definition of "term" when
opening the manual page in a pager, effectively porting the -T html
fragment name feature - https://man.openbsd.org/ksh#ulimit - to the
terminal. Try:
$ man -O tag uvm_sysctl
$ man -O tag=ulimit ksh
$ man -O tag 3 compress
Feature development triggered by a question from kn@. Klemens also
tested, provided feedback that resulted in improvements, and provided
an OK.
Diffstat (limited to 'man.1')
-rw-r--r-- | man.1 | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1,9 +1,9 @@ -.\" $Id: man.1,v 1.33 2018/04/19 23:41:16 schwarze Exp $ +.\" $Id: man.1,v 1.34 2018/11/22 11:30:23 schwarze Exp $ .\" .\" Copyright (c) 1989, 1990, 1993 .\" The Regents of the University of California. All rights reserved. .\" Copyright (c) 2003, 2007, 2008, 2014 Jason McIntyre <jmc@openbsd.org> -.\" Copyright (c) 2010, 2011, 2014-2017 Ingo Schwarze <schwarze@openbsd.org> +.\" Copyright (c) 2010, 2011, 2014-2018 Ingo Schwarze <schwarze@openbsd.org> .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -31,7 +31,7 @@ .\" .\" @(#)man.1 8.2 (Berkeley) 1/2/94 .\" -.Dd $Mdocdate: April 19 2018 $ +.Dd $Mdocdate: November 22 2018 $ .Dt MAN 1 .Os .Sh NAME @@ -266,6 +266,13 @@ and can be used to move to the next and to the previous place providing information about the term last searched for with .Ic :t . +The +.Fl O Cm tag Ns Op = Ns Ar term +option documented in the +.Xr mandoc 1 +manual opens a manual page at the definition of a specific +.Ar term +rather than at the beginning. .It Ev MANPATH The standard search path used by .Nm |