Commit Graph

18 Commits

Author SHA1 Message Date
abhinav
3dbd2466c0 Fix grammar/spelling at few places. 2016-06-17 18:48:07 +00:00
abhinav
77fd34aa9f Add man.conf(5) and man(1) in the SEE ALSO section. 2016-06-16 14:07:16 +00:00
abhinav
e92872065a Add options to whatis and apropos to accept custom man.conf.
makemandb(8), man(1) already use -C as an option to take man.conf path,
	so use the same option for whatis(1) and apropos(1) for consitency.
	apropos was using -C/-c to disable/enable context of the search
	matches, change that to -M/-m respectively.
2016-05-22 19:26:04 +00:00
snj
6f0923dea4 Thankfully, apropos returns all results by default these days. Remove
outdated sentence referring to the original (well, old new) limit of 10.
2014-11-04 08:05:21 +00:00
wiz
4a591a0994 Wording improvements from Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com> 2013-11-29 23:58:23 +00:00
wiz
d347f34bdd Bump date. 2013-04-02 18:35:28 +00:00
christos
910ecac4db instead of having a format and no format flag, and exposing various formatters,
provide a format enum and expose html formatting too.
2013-04-02 17:16:50 +00:00
wiz
d70358d69a Use Ev for environment variables. Improve -n description. 2013-03-29 21:39:09 +00:00
christos
2b42c8b2ee - Fix legacy mode to use like instead of match. This loses ranking.
- default to unlimited lines
- fix formatting of legacy mode
2013-03-29 20:37:00 +00:00
christos
bc93b1e8f9 Don't enumerate all the digit sections
Explain limitations in legacy mode
2013-03-29 20:17:19 +00:00
christos
cb0641eb5a - If the stdout is not a tty, prevent formatting unless forced with -i
- Don't ever page unless asked for with -p
- Introduce "legacy mode" (-l)
  1. searches only name and name_desc, prints name(section) - name_description
  2. turns off escape formatting (can be forced on with -i)
  3. turns off context printing (can be forced on with -c)
- Parse the environment $APROPOS variable as an argument vector.

With these changes one can simply 'export APROPOS=-l' and get the old apropos
behavior.
2013-03-29 20:07:31 +00:00
christos
9d0d34e51f add -r flag to elide tty formatting 2013-02-10 23:58:27 +00:00
wiz
b1203a9851 Make mandb path configurable. makemandb (and related tools) use
the path from the _mandb variable from man.conf now.

Set _mandb in man.conf to same value as was used before.

From Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.
2012-10-06 15:33:59 +00:00
wiz
1c81341419 Add HISTORY section. From Abhinav Upadhyay in private mail. 2012-04-22 21:27:07 +00:00
joerg
fdbd00e5b0 Add reference to whatis(1). From Abhinav Upadhyay. 2012-02-20 18:25:51 +00:00
joerg
56cd811802 Add support for apropos -s like in the old apropos. Fix capitalisation.
Add note about optional quotation. From Abhinav Upadhyay.
2012-02-15 23:53:13 +00:00
njoly
ca0e389587 Fix makemandb section. 2012-02-10 16:57:44 +00:00
joerg
410d0f4380 Import the new apropos/whatis.
This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.
2012-02-07 19:13:24 +00:00