Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for subcommands in __fish_man_page #3678
This PR adds a feature that after typing
The new logic takes the first argument which doesn't start with a dash
Now that I've addressed the code, on to the general idea.
I'm actually suprised how well this rather simple approach works - so far I haven't found a case where it fails (well, it does with
I'd be grateful if others could test this so that we don't have any embarrassing failures in obvious situations that I'm too dense to see.
This commit adds a feature that after typing "git add" and pressing "alt+h", the manpage for "git-add" instead of "git" would be displayed. The new logic takes the first argument which doesn't start with a dash and tries to display manpage for "command-argument"; it falls back to "man command" it the first try doesn't succeed. Fixes #3618.
Thanks. The reason you don't need it, and probably most people, is that you're using