BurntSushi/ripgrep

Add linkable headings to options in man pages

Open

#3,243 建立於 2025年12月10日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Rust (63,768 star) (2,559 fork)batch import
enhancementhelp wanted

描述

Describe your feature request

This is a kinda random/niche request, though ideally should be rather trivial to add: it would be nice if there were linkable headings for each of the different options (in programs which support this), as there may be times when it's desireable to send a link to a specific option in a man page to someone, when using a website like the arch linux man pages which support links to headings.

An example of another man page which does this is fd. although I'm not too familiar with the man page syntax, however I believe the correct way to do this is to use .TP, although .IP might be better as it allows you to set the tag/label?

example link to a specific option in fd (albeit the names is not the best and could break if a new option starting with the same word is added, but it's better than nothing): https://man.archlinux.org/man/fd.1#no~2

貢獻者指南