BurntSushi/ripgrep

Add linkable headings to options in man pages

開放

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

 (1 則留言) (0 個反應) (0 位負責人)Rust (2,559 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (63,768 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南