Re: [dev] [st][patch] externalpipe()
Greetings.
On Fri, 20 Dec 2013 15:27:24 +0100 Rob <robpilling_AT_gmail.com> wrote:
> Hi all,
>
> Attached is a patch which gives st the ability to spit out its current
> screen text to another program. This can be added under shortcuts in
> config.h, e.g.:
>
>
> static Shortcut shortcuts[] = {
> ...
> { MODKEY, 'u', externalpipe, { .s = "xurls | dmenu -l 10 | xargs open" } },
> };
>
> Where xurls[1] is a script that pulls out urls from the text, then I can
> pick one in dmenu and open[2] it in a browser.
>
> If this doesn't qualify as core-st I'll happily stick it on the patches
> page. Feedback welcome.
Please provide it as a patch on the wiki. I have something similar, but
for the selected text (where double‐click selection is handy) so the
clipboard text is sent to a similar »open« application. This is a bit
more universal in the X11 environment.
Sincerely,
Christoph Lohmann
Received on Fri Dec 20 2013 - 15:27:24 CET
This archive was generated by hypermail 2.3.0
: Fri Dec 20 2013 - 15:36:06 CET