vile
[Top][All Lists]
Advanced

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

Re: [vile] (no subject)


From: Wayne Cuddy
Subject: Re: [vile] (no subject)
Date: Thu, 3 Sep 2015 12:52:37 -0400
User-agent: Mutt/1.4.2.3i

On Wed, Sep 02, 2015 at 06:44:54PM -0400, Thomas Dickey wrote:
> On Wed, Sep 02, 2015 at 02:52:39PM -0400, Wayne Cuddy wrote:
> > On Mon, Aug 31, 2015 at 05:48:34PM -0400, Thomas Dickey wrote:
> > > On Mon, Aug 31, 2015 at 04:58:25PM -0400, Thomas Dickey wrote:
> > > > > ~~~~~~~~~~~~~~~~~~~~
> > > > > store-procedure show-register string="reg" "show the contents of a 
> > > > > single register"
> > > > >     ~local %bn
> > > > >     setv %bn &cat "register-" $1
> > > > >     find-file %bn
> > > > >     1 goto-line
> > > > >     delete-lines-til end-of-file
> > > > >     put $1
> > > > > ~endm
> > > > > ~~~~~~~~~~~~~~~~~~~~
> > > > > 
> > > > > I've tried:
> > > > > 
> > > > > put "$1"
> > > > > $1 put
> > > > > "$1" put
> > > 
> > > You should be able to do
> > > 
> > >   use-register $1 put
> > > 
> > > -- 
> > > Thomas E. Dickey <address@hidden>
> > > http://invisible-island.net
> > > ftp://invisible-island.net
> > 
> > Thanks, worked like a charm. Here is the complete version of
> > show-register in case anyone else finds it useful.
> 
> thanks - I'll try this out.
> 
> I'm working on a change to add a register-type parameter, which would
> let someone do name-completion to notice that it's really a register name.
> (Seems overkill, but probably friendlier).
> 
> -- 
> Thomas E. Dickey <address@hidden>
> http://invisible-island.net
> ftp://invisible-island.net

Actually that would be kinda sweet. So if only 5 register actually
have content loaded then show-register <tab> would only list those 5
registers?

Less thinking is always better as far as I'm concerned :)




reply via email to

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