autocomplete icon indicating copy to clipboard operation
autocomplete copied to clipboard

Autocomplete over all the aliases and CLI tools

Open pbteja1998 opened this issue 3 years ago • 2 comments

Right now, autocomplete only works from the second command. It would be nice to get autocomplete right from first command.

Usecase: If I have following aliases:

g=git
ga='git add'
gaa='git add --all'
gap='git apply'
gapa='git add --patch'
gau='git add --update'
gav='git add --verbose'
gb='git branch'

When I type g, I should be able to get autocomplete for all these aliases. It would be even better if we are also able to see the related expansion of the aliases in the autocomplete itself. Something like g(git), ga(git add), ....

pbteja1998 avatar Mar 12 '21 04:03 pbteja1998

Several people have requested this. I've added it to our roadmap.

mschrage avatar Apr 02 '21 22:04 mschrage

+1

jasonjckn avatar Aug 07 '22 21:08 jasonjckn

Done!

clo4 avatar Sep 28 '22 04:09 clo4

@SeparateRecords How to enable this feature? I'm using fig cli 2.5.3 thanks!!

ksundong avatar Oct 11 '22 03:10 ksundong

The setting is available in the fig settings UI or you can run this command to enable it:

fig settings autocomplete.firstTokenCompletion true

(you might have to restart your terminal after enabling)

clo4 avatar Oct 11 '22 03:10 clo4