aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tag.c
Commit message (Collapse)AuthorAgeFilesLines
* Be consistent in protecting __attribute__ attributes with __;Ingo Schwarze2017-02-171-2/+2
| | | | from Christos Zoulas <christos @ NetBSD>.
* Use stdout rather than stdin for controlling the terminalIngo Schwarze2017-01-091-3/+3
| | | | | | | such that "cat foo.mdoc | man -l" works. Issue reported by Christian Neukirchen <chneukirchen at gmail dot com> and also tested by him on Void Linux with both glibc and musl. The patch makes sense to millert@.
* implement tag priority 0, which will tag only keys that appear asIngo Schwarze2016-11-081-4/+12
| | | | | tag candidates exactly once, and use it for .Em and .Sy; written on the TGV Toulouse-Paris
* skip leading \& and \e in tagsIngo Schwarze2016-11-081-2/+8
|
* support more than one tag entry for the same search term;Ingo Schwarze2016-11-081-8/+39
| | | | general idea discussed with bcook@ during l2k16
* tag_signal() is dead; from LLVM via Christos ZoulasIngo Schwarze2016-07-201-2/+2
|
* POSIX requires that a process calling tcsetpgrp(3) from the backgroundIngo Schwarze2016-07-081-7/+19
| | | | | | gets a SIGTTOU signal. In that case, do not stop. Portability issue found while testing on commercial Solaris 9/10/11. Thanks to opencsw.org for providing me with a testing environment.
* Fix multiple issues regarding process group and signal mask handlingIngo Schwarze2015-11-201-6/+23
| | | | | found by tb@ and millert@; parts of the code, in particular in tag.c, by millert@; OK millert@.
* Reduce the amount of code by moving the three copies of the ohashIngo Schwarze2015-10-131-41/+3
| | | | | callback functions into one common place, preparing for the use of ohash for some additional purposes. No functional change.
* Drop tags containing a blank character:Ingo Schwarze2015-10-111-2/+2
| | | | | | They don't work, they break other tags in weird ways, and even if they could be made to work, they would be mostly useless. Issue reported by naddy@, thanks.
* modernize style: "return" is not a functionIngo Schwarze2015-10-061-5/+5
|
* Including <ohash.h> requires including <stdint.h> before,Ingo Schwarze2015-08-291-1/+4
| | | | | and "config.h" was missing as well. Patch from Svyatoslav Mishyn <juef and openmailbox dot org>, Crux Linux.
* Remove the hack of scrolling forward and backward with +G1G thatIngo Schwarze2015-07-281-20/+57
| | | | | | | | | | many (jmc@, millert@, espie@, deraadt@) considered revolting. Instead, when using a pager, since we are using a temporary file for tags anyway, use another temporary file for the formatted page(s), as suggested by millert@ and similar to what the traditional BSD man(1) did, except that we use only one single temporary output file rather than one for each formatted manual page, such that searching (both with / and :t) works across all the displayed files.
* Simplify and make tag_put() more efficient by integrating tag_get()Ingo Schwarze2015-07-251-32/+10
| | | | | into it and by only handling NUL-terminated strings. Minus 25 lines of code, no functional change.
* basic support for tag priorities; written at YYCIngo Schwarze2015-07-251-4/+6
|
* When creation of the temporary tags file fails, call the pagerIngo Schwarze2015-07-211-9/+3
| | | | | | | | without the -T option, because otherwise the pager won't even start. Fixing a bug reported by jca@. While here, shorten the code by two lines and delete one internal interface function.
* clean up the temporary file when the process dies from a signalIngo Schwarze2015-07-181-1/+17
|
* Initial, still somewhat experimental implementation to leverageIngo Schwarze2015-07-171-0/+183
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@.