autocomplete
autocomplete copied to clipboard
Autocomplete over all the aliases and CLI tools
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)
, ....
Several people have requested this. I've added it to our roadmap.
+1
Done!
@SeparateRecords How to enable this feature? I'm using fig cli 2.5.3 thanks!!
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)