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

Re: do not add a space after completion



On Jun 14,  9:26am, Eric Smith wrote:
}
} I have a completion function that when executed should supply
} no extra space after the option is given (on pressing <tab>).
} 
} Ideally it should append an underscore instead.

When calling compadd, pass the -S option and possibly the -r option.
There is a partial example under the -r option description in the
manual.  For your specific case, probably you want:

    compadd -S _ -r '_ \t\n' ...

(replacing "..." with other options and potential matches, etc.)



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