aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tag.c
Commit message (Collapse)AuthorAgeFilesLines
* 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@.