Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [BUG] COMPLETE_IN_WORD fails to recognize brace_parameter context



On 8 May 2021, at 03:04, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> 
>> This works correctly:
>> 
>> % setopt completeinword
>> % tst() { print "\n$compstate[context]"; zle -I }
> 
> I think there's something missing here for the test case.  A style or
> a bindkey?  Something to run "tst"?

Ah, yes. I apparently forget to add:

% zle -C tst complete-word tst
% bindkey '^I' tst

But it looks like you figured out the gist of it anyway. :)





Messages sorted by: Reverse Date, Date, Thread, Author