[Top][All Lists]

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

[vile] Using filter-til to replace format-til

From: Jānis Rūcis
Subject: [vile] Using filter-til to replace format-til
Date: Sun, 10 Aug 2008 15:46:09 +0300
User-agent: Mutt/1.5.18 (2008-05-17)


I'm trying to create a binding that would work in a manner similar to
format-til, while instead using an external program to do the
formatting.  This is basically what filter-til already does, except I
can't figure out how to avoid typing the command every time I use it.

The closest I've got (basic idea) is this:

    store-procedure my-format-til
        filter-til &gtmotion 'default' 'par -j1 -w70'
    bind-key g my-format-til

But this handles a repeat count in strange ways, not the same way
format-til and filter-til do.  Is there a way I can obtain the repeat
count from within the macro to pass to filter-til?

reply via email to

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