-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
No autocompletion inside autoclosed pairs #1
Comments
@kopischke I see the problem, but it's not caused by pisces. I mean that if you uninstall pisces and reproduce the same situation, you won't get completions. Probably it's worth creating an issue in the fish-shell repo. |
Yes, I am aware that the issue is not caused by pisces (I never said otherwise); the reason I do not consider this a fish issue, but one pisces needs to address, are twofold:
|
@kopischke sure, I understand your arguments and I see how pisces brings this issue to the surface. Here's one probably
echo "$|" ( In fish 2.2 Also, can you describe in more details what happens when you hit |
I’m using fish 2.3 beta 2, and yes, you might need an extra char to get a completion (I’ll have to check next time I’m at my machine). Inside paired characters, I just get a flash of the command line instead of a completion. |
@kopischke I had some chat with a fish developer and it doesn't seem to be solvable by providing some custom completion handling, because you cannot just call pager to complete a given string (it's accessible only internally). I've made a little demo of what's doable: completing vars inside of double quotes. As you see, when there's only one option, it's easy and nice, but if there are several, I cannot invoke normal fish completion in place. There are different workarounds:
What do you think about it? Another stupid, but very simple workaround just for the particular type of situations as in your example:
|
Well, that is a pity, albeit not entirely unexpected. I am afraid that means I will have to pass on using pisces: omnipresent, uncomplicated, quasi magical auto completion is what sold me on fish; even the nicest plugin (and pisces is very nice) is not worth compromising that. Would you like to keep the issue open to track it or shall I close? |
Sure, I'll keep it open. As I see it, pisces gets in your way only when initially typing text, because if you already have a double quoted string (with or without pisces), you cannot autocomplete anything inside of it. A workaround could be to bind the tab key to delete
If the only problem is about double quotes and you don't want any of the suggested workarounds, why not just disabling this particular pair, while keeping the rest? There is a setting for that:
You can just set it as you like. Or do you have more similar issues? |
A little demo of this overriden tab: A curious thing about fish completion is that after completing a token that starts with |
@laughedelic now that sounds like an excellent workaround. Would love to see that make the next release. |
@kopischke you can try it 😉 |
@laughedelic very nice, I’m in love with pisces again. I stumbled on an issue with the new completion wrapper, though, see #2. |
Not sure if there is much pisces can do about it, but fish completion breaks inside autocompleted pairs, probably because the closing symbol is then added to the tokens parsed for completion. Without pisces
will complete variable names, but with it
will offer no completions.
The text was updated successfully, but these errors were encountered: