From: Felix Rosencrantz <f_rosencrantz@yahoo.com>
To: Philippe Troin <phil@fifi.org>, zsh-users@sunsite.dk
Subject: Re: Useful query-replace zle widget
Date: Thu, 16 Jan 2003 07:09:17 -0800 (PST) [thread overview]
Message-ID: <20030116150917.10050.qmail@web10405.mail.yahoo.com> (raw)
In-Reply-To: <87heda1zz7.fsf@ceramic.fifi.org>
Seems like it might be useful.
Some problems I had.
1) Didn't handle backspace (vs. del) well, and other non-self-insert keys
2) If I was at the eol, it did nothing.
Also, a feature request for zle that will be rejected by workers...
3) Some sort of highlighting capability in zle, to see the selection.
-FR
--- Philippe Troin <phil@fifi.org> wrote:
> Hi,
>
> I've been using these for a while and it's time for me to share
> them... It involves `creative' use of zle... It's zsh's answer to
> emacs's query-replace.
>
> How to use:
> 1. You need the read-within-zle function.
> 2. Drop read-within-zle and query-replace along your fpath
> 3. Add the following to your .zshrc:
> autoload -zU query-replace read-within-zle
> zle -N query-replace
> bindkey "^[%" query-replace
> bindkey "\M-%" query-replace # only if using bindkey -m
> 4. Use M-x query-replace or M-% to start query-replace'ing.
>
> Enclose these in the zsh distribution if you find them useful. Both
> functions are GPL'ed but I'm willing to change the license if needed
> for inclusion into zsh.
>
> Phil.
>
> ATTACHMENT part 2 application/x-sh
> ATTACHMENT part 3 application/x-sh
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
next prev parent reply other threads:[~2003-01-16 15:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-19 2:53 Philippe Troin
2003-01-16 15:09 ` Felix Rosencrantz [this message]
2003-01-24 1:55 ` Philippe Troin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030116150917.10050.qmail@web10405.mail.yahoo.com \
--to=f_rosencrantz@yahoo.com \
--cc=phil@fifi.org \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).