You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per discussion with @diml and @dbuenzli, let's outline the new behavior of unabbreviating things like l-a to list-available.
Cmdliner's custom trie already does a prefix match and allows one to type opam sw and have it run opam switch. Additionally, it's very useful to unabbreviate (expand) opam sw l-a to opam switch list-available.
Not sure why this was closed but I'm not against :-) A few comments:
I don't think the current behaviour of cmdliner which allows prefixes to be specified for commands and options was a good idea in the first place since it is not stable w.r.t. option and command additions despite the fact that it is a very natural destiny for cli programs.
I have the impression that the kind of behaviour that was sought by this proposal is better solved at the shell UI layer where smarter, highly user dependent and statistically informed completion strategies can be achieved in a generic manner.
As per discussion with @diml and @dbuenzli, let's outline the new behavior of unabbreviating things like
l-a
tolist-available
.Cmdliner's custom trie already does a prefix match and allows one to type
opam sw
and have it runopam switch
. Additionally, it's very useful to unabbreviate (expand)opam sw l-a
toopam switch list-available
.Examples:
The implementation doesn't necessarily have to be limited to two fields and could support more, like
dune d-s-e
matched asdune do-something-else
.@dbuenzli wrote:
The text was updated successfully, but these errors were encountered: