> Attached is a silly patch to prevent a segmentation fault in st when
> you accidentally press PrintScr with no text selected.

Uysss, stupid bug I commited, thanks!!!!

> BTW does anybody use this with a plumber? Care to explain the details?

I don't use it with a plumber, but for example I have used it with
pipes for some concrete things:

        st | sed 's/^M//g' | mail -s "last diff" k...@shike2.com

        inside st:
                ssh hal9000
                git diff
                [CTRL+PrintScr]
                [Enter]
                [CTRL+PrintScr]
                ^D

The most ugly part here is the extra ^M you get with selections. If you
want to use a real plumber you could check aginst regular expressions in a
case:

        #/bin/sh

        case $1 in
        http:*)
                surf $1
                ;;
        *.jpg)
                sxiv $1
                ;;
        esac


Of course, in the case of *.jpg it will work only if the selection is an
absolute name, or the plumber and st are in the same directory.

Regards,

        
-- 
Roberto E. Vargas Caballero

Reply via email to