fish-shell/share
Evan Lloyd New-Schmidt a605bcb830 Show manpage for command under cursor
This commit lets you check the manpage for a leading command by moving
the cursor over it, matching the behavior of tab complete.

It also lets you select the man page for the base of a two-part command
like `string match`.

The additional regex case is added because
`commandline -t` returns an empty string when the cursor is after a
space, e.g. at the end of 'sudo ', which the later checks don't handle.

This diagram shows the manpage picked for different cursor positions:

    > sudo -Es time git commit -m foo
      +-------++---++--++------------+
      |       ||   ||  ||            |
      |       ||   ||  |+------------+
      |       ||   ||  |  git-commit
      |       ||   |+--+
      |       ||   | git
      |       |+---+
      |       | time
      +-------+
         sudo
2022-06-17 07:21:25 +02:00
..
completions Restyle codebase 2022-06-16 18:43:28 +02:00
functions Show manpage for command under cursor 2022-06-17 07:21:25 +02:00
groff
tools Restyle codebase 2022-06-16 18:43:28 +02:00
__fish_build_paths.fish.in
config.fish Search $__fish_user_data_dir for vendor additions 2022-05-12 20:29:05 +02:00
lynx.lss