Skip to content
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

Text following cursor Interferes with autocompletion #3

Open
hlissner opened this issue Dec 15, 2015 · 1 comment
Open

Text following cursor Interferes with autocompletion #3

hlissner opened this issue Dec 15, 2015 · 1 comment

Comments

@hlissner
Copy link
Owner

Assuming | is the cursor position:

echo $AUTOPAIR_PAIRS[|] => Tab

Expected

  • autocompletes hash table keys.

Hash completion

Actual

Trailing ] interferes with completion and no completion is done.

Workaround

This allows completion to work regardless of what's in front of the cursor:

bindkey '^I' expand-or-complete-prefix

I want a better solution though. Perhaps a combination of setopt COMPLETE_IN_WORD and _prefix completion...?

@hlissner hlissner added the bug label Dec 15, 2015
@IngoMeyer441
Copy link

Does the workaround still work? I tried it for

echo ${|}

to complete environment variables but it does not seem to work on zsh 5.5.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants