Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tab completion doesn't work for abbreviations #3233
When typing an abbreviation, it would be really nice if you could hit tab to complete that abbreviation. For example, I have an abbreviation
While it is a little weird to complete something that's not a real command, I still expected the completion to show up, and it would definitely make things quicker for me.
fish version installed (
OS/terminal used: Mac OS 10.11, iTerm2 3.0.4
Would the completion expand it into the expected final, right-hand-side of an abbr definition when you've typed part of the (left hand) "before" side of the abbreviation? What would you see in the pager? How would that interact with completions that might already exist for one side or another we include, when the abbr transforms something that's a valid command into a different valid command?
I experienced this today, too.
So "bac<tab>" should have completed to "backup-"
Only after pressing Enter (or Space) the abbreviation should transfer into the expanded result on the command line (as it currently already does). So the same thing that @willwhitney said.
I understand @floam's concerns, but as this is not different from what would happen if I had entered "backup-mt-eject<Enter>" myself, this is only as confusing as the current situation if you have abbreviations you don't know.
Edit: Protected < and > with backslashes so they are shown