On Fri, Feb 24, 2017 at 7:48 PM, Shiyao Ma <i...@introo.me> wrote:

> I run `fish_update_completions', but seems it doesn't generate the
> completion from `man readelf'.
>
> Anything I did wrong?
>

No but auto-generated completions are a best-effort situation. Man pages
vary greatly in how they express the arguments a command accepts. Fish's
auto-generated completions will sometimes be missing completely or
sub-optimal for some commands. Note that when asking such a question you
should always a) specify the fish version you are using, and b) the OS you
are using. In this case I can confirm that the newest fish version (from
git head) running on Ubuntu 16.10 fails to create a completion file from
the man page for the `readelf` command.

Feel free to open an issue at
https://github.com/fish-shell/fish-shell/issues/new asking that the
`fish_update_completions` command be improved to handle that man page or
requesting that a custom completion script be written. Note that the issue
is more likely to be resolved quickly if you're willing to create change to
the code :-)

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to