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 11649
- From: jadamson@xxxxxxxxxxxx (Joel J. Adamson)
- To: zsh-users@xxxxxxxxxx
- Subject: Re: How to do a simple find-replace autocomplete?
- Date: Mon, 16 Jul 2007 13:37:51 -0400
- In-reply-to: <070716090942.ZM7320@xxxxxxxxxxxxxxxxxxxxxx> (Bart Schaefer's message of "Mon\, 16 Jul 2007 09\:09\:42 -0700")
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200707152136.40771.mats_a@xxxxxxx> <3442bf5a0707151933i47b9acfevfbc20c8dc178d0e6@xxxxxxxxxxxxxx> <200707152313.14642.mats_a@xxxxxxx> <070716090942.ZM7320@xxxxxxxxxxxxxxxxxxxxxx>
If you have yet to read Peter's ZSH user guide, I suggest you do so
several time ;)
http://zsh.sourceforge.net/Guide/
It's full of useful hints and excellent explanations.
Joel
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> writes:
> 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.)
>
--
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA 02114
(617) 643-1432
(303) 880-3109
*Getting unexpected output from Word?
http://www.youtube.com/watch?v=9sZtriK9rKQ&NR=1
*Try LaTeX: it's free, easy and professional
http://www.edafe.org/latex/
http://en.wikipedia.org/wiki/LaTeX
http://nitens.org/taraborelli/latex
The information transmitted in this electronic communication is intended only for the person or entity to whom it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this information in error, please contact the Compliance HelpLine at 800-856-1983 and properly dispose of this information.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author