autocomplete - Enable returning multiple arguments as completion reply at once in fish shell -


i working on porting google cloud sdk command line auto completion feature fish shell. when have unambiguous reply multiple arguments:

a) either command completed arguments spaces gets escaped (\ ) when specify function call in complete command inside ''s or ""s, like: > complete ... -a '(__fun)'

b) or if don't (just: -a (__fun)), first argument of reply gets completion , other arguments "get lost"

is possible reply multiple arguments @ once in fish completion?

could done in number of ways. have hack bit, though, since ridiculous_fish says it's not designed this. easiest ship own wrapper function can take escaped output , pass on in way works. not pretty, though, , screw autosuggestions unless go , modify history lines.

here's semi-hacky/semi-elegant propose: if have looked "sequence" of args you'd want complete @ once, @ first invocation put trailing args description first one. once 1 has been locked in, remove other options first in "description queue", keep going through , matter of pressing tab-tab-tab-tab.

completions don't have perfect, they're lil on way until have enough history lines autosuggestions take over, imo.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -