tconfig.h: use curl(1) for editing source, show diagnostic output in child term… | |
git clone git://src.adamsgaard.dk/surf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit d6c0c879c5b7bf826fe962c6d21ab3c01b514465 | |
parent 5cc0b4b850b609c62954859e255f96539df8e848 | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
diff --git a/config.h b/config.h | |
t@@ -137,12 +137,12 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_… | |
} \ | |
} | |
-/* 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)\"… | |
- "tmux new-session \"$EDITOR $f\" ", \ | |
+ "curl -sL \"$(echo $(xprop -id $0 $1) | cut -d '\"' -f… | |
+ "tmux new-session \"$EDITOR '$f'\" ", \ | |
winid, r, NULL \ | |
} \ | |
} |