Open hlissner opened 8 years ago
Assuming | is the cursor position:
|
echo $AUTOPAIR_PAIRS[|] => Tab
echo $AUTOPAIR_PAIRS[|]
Trailing ] interferes with completion and no completion is done.
]
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...?
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.
Assuming
|
is the cursor position:echo $AUTOPAIR_PAIRS[|]
=> TabExpected
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...?