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

Re: How to do a simple find-replace autocomplete?



On Jul 15, 11:13pm, Mats Ahlgren wrote:
}
} However, if anyone has any autocompletion tutorial resource URL to
} share, it would be appreciated.

http://zsh.sourceforge.net/Guide/zshguide06.html#l144

} How would one have the pattern "#dir" (perhaps defined via a regex)
} autocomplete using tab, invoking a script with the match (e.g. $
} myAutoComp.py dir), which returns a newline-delimited list of possible
} completions to feed into the completion engine?

I don't know how to interpret the "defined via a regex" part, but take a
look at the modify-current-argument function packaged with recent versions
of the shell.  (It's probably too recent to have been mentioned in the
zshguide link above.)



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