zsh-autocomplete
zsh-autocomplete copied to clipboard
Print current option help
What do you want?
Sometimes, I'm not sure whether I'm typing the good option, say that I don't remember what ls -X
does exactly. I would like to read the doc in the first entry of the help menu… unfortunately the typed option does not appear at all in the help menu:
Similarly, I'm not sure to understand why, but the list of options that is printed if I just type -
is much smaller than the list of options that I can get if I type first a dummy entry like -A
:
Why do you want this?
Poor memory?
Who else would benefit from this?
I guess many people.
How should it work?
When I type -
, it should print all available options (like what happens with the MORE thing when I typed a character), and if I type -X
or --someoptions
, the option I just typed should appear first in the option
list so that I can read its documentation.