1
1
Fork
You've already forked man-index
0
An Emacs command to quickly navigate to keywords within a man page.
  • Emacs Lisp 100%
2025年05月01日 08:11:29 -07:00
LICENSE Initial commit 2025年04月24日 14:40:08 -07:00
man-index.el wording 2025年04月26日 16:38:17 -07:00
README.md tweak use-package example 2025年05月01日 08:11:29 -07:00

man-index.el

Use the man-index command to navigate to topics within the current man page. This is similar to Man-goto-section but more granular. Bind it to i in man-mode to match the Info-index binding:

(with-eval-after-load "man"
 (define-key Man-mode-map "i" 'man-index))

Or with use-package:

(use-package man-index
 :vc (:url "https://codeberg.org/imarko/man-index")
 :after man
 :bind
 (:map Man-mode-map
 ("i" . man-index)))

Since man pages don't really have a concept of a keyword index we have to work what we have. Currently man-index-build picks up words or phrases that are at the beginning of the line with 2-8 spaces in front of them and use the Man-overstrike face.

This is currently at the "works for me... sometimes" level of usability. I have tested it with random man pages I happened to be using: fennel-reference, tmux, mpv, jq.