vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] searching for register contents


From: Paul Fox
Subject: Re: [vile] searching for register contents
Date: Fri, 28 Jun 2013 09:29:19 -0400

brendan wrote:
 > An option would be to permit a register prefix to ^X-/ search, in
 > which case the search pattern would come from the register rather than
 > the screen.  Lightly tested implementation appended.  Example use:
 > 
 >   "zy2e
 > 
 > to yank two words to register z, then
 > 
 >   "z^X/
 > 
 > to search for those two words.

...

 > On 28 June 2013 19:17, Thomas Dickey <address@hidden> wrote:
 > > But wouldn't that require adding a prefix for "all" commands?  [...]
 > 
 > The way use-register (usekreg) works is to set up the register then
 > parse the next command and run it before returning, so it is
 > effectively a prefix for *all* commands.  Note that this patch does
 > actually work as-is, although it could of course be better documented
 > and I didn't exhaustively test it.
 > 
 > Note also that I've no particular horse in this race: I was more
 > curious to see how hard it would be to handle the OP's requirement
 > (and to avoid the Real Work I was *meant* to be doing at the time)
 > rather than having a burning desire to see it implemented this
 > specific way tomorrow.

it sounds like a nice addition, to me.  it seems like to could be
a prefix to '/' instead of '^X-/', but there may be a subtlety to
that that i'm missing at the moment.

paul

 > 
 > --bod
 > 
 > _______________________________________________
 > vile mailing list
 > address@hidden
 > https://lists.nongnu.org/mailman/listinfo/vile

----------------------
 paul fox, address@hidden (arlington, ma, where it's 64.6 degrees)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]