You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wasn't able to reproduce this. I tried cd foo; and grep --<tab> and saw grep completions. What version of fish are you testing on, on what OS? Can you give steps to reproduce?
its was with git commands. should have used that example. git checkout dev-wprater ;and git checkout <tab> should list branches (lists dir contents) and git checkout dev-wprater ;and git ch<tab> should suggest checkout
The same is the case for the service command, so it could very well be a bug in the commandline builtin. It probably counts and and or as commands as well.
It re-checks that the command is really git - which is stupid since fish is already certain it's git since it looked up the git completions. This should also break wrappers (e.g. "hub").
Just removing it (which I've done in #2145) is the correct solution and should be done for every single completion script that uses it.
Of course the proper solution would be to actually check if it has a command instead of just looking up commandline-length (i.e. not __fish_seen_subcommand_from $commands).
I've pushed the simple solution in 5e555fc as I'm uncomfortable with touching completions I can't test (like brew) beyond the minimum.
I believe this is now fixed (except for git, which is in #2145). If anyone pushes a completion that breaks it, please yell as loud as you can (get a megaphone or something).
Activity
ridiculousfish commentedon Apr 12, 2015
I wasn't able to reproduce this. I tried
cd foo; and grep --<tab>and saw grep completions. What version of fish are you testing on, on what OS? Can you give steps to reproduce?wprater commentedon Apr 12, 2015
its was with git commands. should have used that example.
git checkout dev-wprater ;and git checkout <tab>should list branches (lists dir contents) andgit checkout dev-wprater ;and git ch<tab>should suggestcheckoutversion 2.1.2 on OS X.
ridiculousfish commentedon Apr 12, 2015
Thanks. It may be a bug in the
commandlinebuiltin.JelteF commentedon May 8, 2015
The same is the case for the
servicecommand, so it could very well be a bug in thecommandlinebuiltin. It probably countsandandoras commands as well.zanchey commentedon May 26, 2015
commandline -opcin these instances returnsand git.faho commentedon Aug 5, 2015
I can reproduce it with git in current master, but not with #2145, so a change there seems to have affected it.
faho commentedon Aug 17, 2015
Okay, the line that should cause this issue:
It re-checks that the command is really git - which is stupid since fish is already certain it's git since it looked up the git completions. This should also break wrappers (e.g. "hub").
Just removing it (which I've done in #2145) is the correct solution and should be done for every single completion script that uses it.
faho commentedon Aug 17, 2015
Of course the proper solution would be to actually check if it has a command instead of just looking up commandline-length (i.e.
not __fish_seen_subcommand_from $commands).Completions: Don't check $cmd[1]
faho commentedon Aug 17, 2015
I've pushed the simple solution in 5e555fc as I'm uncomfortable with touching completions I can't test (like brew) beyond the minimum.
I believe this is now fixed (except for git, which is in #2145). If anyone pushes a completion that breaks it, please yell as loud as you can (get a megaphone or something).
Completions: Don't check $cmd[1]