mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
a605bcb830
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 |
||
---|---|---|
.. | ||
completions | ||
functions | ||
groff | ||
tools | ||
__fish_build_paths.fish.in | ||
config.fish | ||
lynx.lss |