tconfig.h: use curl(1) for editing source, show diagnostic output in child term - surf - [fork] customized build of surf, the suckless webkit browser
 (HTM) git clone git://src.adamsgaard.dk/surf
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit d6c0c879c5b7bf826fe962c6d21ab3c01b514465
 (DIR) parent 5cc0b4b850b609c62954859e255f96539df8e848
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Fri, 25 Sep 2020 16:21:41 +0200
       
       config.h: use curl(1) for editing source, show diagnostic output in child term
       
       Diffstat:
         M config.h                            |       8 ++++----
       
       1 file changed, 4 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/config.h b/config.h
       t@@ -137,12 +137,12 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
                } \
        }
        
       -/* BOOKMARK(URI) */
       +/* EDITSRC(URI) */
        #define EDITSRC(r) {\
       -        .v = (const char *[]){ "st", "-e", "/bin/sh", "-c", \
       +        .v = (const char *[]){ "st", "-e", "/bin/sh", "-x", "-c", \
                                "f=\"$(mktemp)\" && " \
       -                        "hurl \"$(echo $(xprop -id $0 $1) | cut -d '\"' -f2)\" > \"$f\" && " \
       -                        "tmux new-session \"$EDITOR $f\" ", \
       +                        "curl -sL \"$(echo $(xprop -id $0 $1) | cut -d '\"' -f2)\" > \"$f\" && " \
       +                        "tmux new-session \"$EDITOR '$f'\" ", \
                    winid, r, NULL \
                } \
        }