[dev] [st][patch] externalpipe()

From: Rob <robpilling_AT_gmail.com>
Date: Fri, 20 Dec 2013 13:56:15 +0000 (GMT)

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.


Rob


1: https://raw.github.com/bobrippling/perlbin/master/xurls
2: https://github.com/bobrippling/open
Received on Fri Dec 20 2013 - 14:56:15 CET

This archive was generated by hypermail 2.3.0 : Fri Dec 20 2013 - 15:00:14 CET