Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to do a simple find-replace autocomplete?
- X-seq: zsh-users 11648
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: How to do a simple find-replace autocomplete?
- Date: Mon, 16 Jul 2007 09:09:42 -0700
- In-reply-to: <200707152313.14642.mats_a@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200707152136.40771.mats_a@xxxxxxx> <3442bf5a0707151933i47b9acfevfbc20c8dc178d0e6@xxxxxxxxxxxxxx> <200707152313.14642.mats_a@xxxxxxx>
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