-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tab completions shouldn't move the cursor when there are no completions #4124
Comments
I believe I agree - getting back to the old cursor position is hard (you need to remember it and then use some movements), while getting to the end of the token is trivial. I can't see a good reason for keeping the status quo - if there is a matching completion going to the end is good because you're most likely done with it, but since there is none here you might need to modify the current token some more - so I'd accept something.
Go! |
FWIW, I can't tell from the original problem statement what the problem is. And thus cannot evaluate the proposed fix. Is this really a priority for the 2.7.0 release? The problem appears to be that if you type |
The issue is that it moves the cursor even when it's not a valid completion. Say I did This is even weirder because with a correct token (as determined by completions) fish will insert a space after it (so it becomes |
Retargeting since this appears to be difficult to improve and isn't a priority for 2.7.0. |
Previously, tab-completion would move the cursor to the end of the current token, even if no completion is inserted. This commit defers moving the cursor until we insert a completion. Fixes fish-shell#4124
Previously, tab-completion would move the cursor to the end of the current token, even if no completion is inserted. This commit defers moving the cursor until we insert a completion. Fixes fish-shell#4124
Previously, tab-completion would move the cursor to the end of the current token, even if no completion is inserted. This commit defers moving the cursor until we insert a completion. Fixes fish-shell#4124
I think it's kind of annoying that fish moves the cursor to the end of a token when
<TAB>
is pressed and no completions are found.To reproduce:
If this sounds like a good idea and would be merged, I'd like to have a go at this issue.
The text was updated successfully, but these errors were encountered: