it works, thanks. Question: what does the * flag do in ${(*)BUFFER … …? On Mon, 18 Sept 2023 at 09:56, Bart Schaefer wrote: > On Mon, Sep 18, 2023 at 6:42 AM Sebastian Gniazdowski > wrote: > > > > Could the % be somehow be quoted after completing? (\%exa works and > calls the %func functon) > > Firstly, to prevent conflicts you can remove "jobs" from the same > completion zstyle I sent earlier for leading colons in command > completion. > > For command execution, you're probably best going with a > zle-line-finish hook that does a search-and-replace, e.g. > > BUFFER=${(*)BUFFER//#%(#b)(${(kj:|:)~functions[(I)%*]})/\\\\$match[1]} > > (remove (*) and setopt extendedglob for older zsh) > -- Best regards, Sebastian Gniazdowski