question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Autocomplete over all the aliases and CLI tools

See original GitHub issue

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), …

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:14
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
mschragecommented, Apr 2, 2021

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

6reactions
SeparateRecordscommented, Oct 11, 2022

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)

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I get bash completion for command aliases?
You must add your alias to the program 'complete'. Depending the kind of autocompletion you want to achieve, you must use -c or...
Read more >
AutoComplete vs. Command Aliases (ex: "F" becomes ...
My problem: 7+ times out of 10, when I would attempt to initialize the "FILLET" command by using the "F" keyboard command alias,...
Read more >
How to alias and navigate to directories with autocomplete in ...
A Linux shell script for registering directory aliases and navigating to them with tab completion.
Read more >
How to use autocomplete at the command line for dotnet, git ...
I enjoy setting up and making my prompt/command line/shell/terminal experience as useful (and pretty) as possible. You have lots of command line ......
Read more >
Fig's autocomplete
The next-generation command line. ; IDE-style autocomplete for your existing terminal · Supports 500+ popular CLI tools · Inline descriptions & powerful ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found