[wiki] [sites] [surf][omnibar] Honor latest version of the script. || clamiax

From: <git_AT_suckless.org>
Date: Sun, 11 Oct 2015 18:41:56 +0200

commit 17dbe0db4d90228f75c00b488eaee215ab88d584
Author: clamiax <smoppy_AT_gmail.com>
Date: Sun Oct 11 18:41:53 2015 +0200

    [surf][omnibar] Honor latest version of the script.

diff --git a/surf.suckless.org/patches/omnibar.md b/surf.suckless.org/patches/omnibar.md
index 08fd111..1058fc9 100644
--- a/surf.suckless.org/patches/omnibar.md
+++ b/surf.suckless.org/patches/omnibar.md
_AT_@ -29,7 +29,7 @@ Now you can use the following key (don't forget to remove the old one):
 Download
 --------
 * [surf-0.6-omnibar.diff](surf-0.6-omnibar.diff) (1.4k) (20151006)
-* [omnibar-7b4a6055f2a7a8326e93f4d6eb6a3a47bb17fec0](https://github.com/clamiax/.surf/blob/7b4a6055f2a7a8326e93f4d6eb6a3a47bb17fec0/omnibar)
+* [omnibar-5b01af10e2](https://github.com/clamiax/.surf/blob/5b01af10e259d6281523ff75efeb4f99c63e2d74/omnibar)
 
 Author
 ------
diff --git a/surf.suckless.org/patches/surf-0.6-omnibar.diff b/surf.suckless.org/patches/surf-0.6-omnibar.diff
index 374c8b8..8bd7bab 100644
--- a/surf.suckless.org/patches/surf-0.6-omnibar.diff
+++ b/surf.suckless.org/patches/surf-0.6-omnibar.diff
_AT_@ -1,5 +1,5 @@
 diff --git a/config.def.h b/config.def.h
-index 1eb9566..064ddb4 100644
+index 1eb9566..e1f142d 100644
 --- a/config.def.h
 +++ b/config.def.h
 _AT_@ -63,6 +63,18 @@ static Bool allowgeolocation = TRUE;
_AT_@ -8,7 +8,7 @@ index 1eb9566..064ddb4 100644
  
 +#define ONLOAD(u) { \
 + .v = (char *[]){"/bin/sh", "-c", \
-+ "~/.surf/omnibar load \"$0\" \"$1\"", u, winid, NULL \
++ "~/.surf/omnibar addhist \"$0\"", u, NULL \
 + } \
 +}
 +
_AT_@ -31,7 +31,7 @@ index 1eb9566..064ddb4 100644
      { MODKEY, GDK_slash, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },
  
 diff --git a/surf.c b/surf.c
-index 02656ec..86bb23e 100644
+index 02656ec..1ccd821 100644
 --- a/surf.c
 +++ b/surf.c
 _AT_@ -712,11 +712,11 @@ loadstatuschange(WebKitWebView *view, GParamSpec *pspec, Client *c) {
_AT_@ -40,7 +40,7 @@ index 02656ec..86bb23e 100644
          SoupMessage *msg;
 - char *uri;
 + char *uri = geturi(c);
-+ Arg arg = (Arg)ONLOAD((char *)uri);
++ Arg arg = (Arg)ONLOAD(uri);
  
          switch(webkit_web_view_get_load_status (c->view)) {
          case WEBKIT_LOAD_COMMITTED:
_AT_@ -48,3 +48,11 @@ index 02656ec..86bb23e 100644
                  if(strstr(uri, "https://") == uri) {
                          frame = webkit_web_view_get_main_frame(c->view);
                          src = webkit_web_frame_get_data_source(frame);
+_AT_@ -733,6 +733,7 @@ loadstatuschange(WebKitWebView *view, GParamSpec *pspec, Client *c) {
+ }
+ break;
+ case WEBKIT_LOAD_FINISHED:
++ spawn(NULL, &arg);
+ c->progress = 100;
+ updatetitle(c);
+ if(diskcache) {
Received on Sun Oct 11 2015 - 18:41:56 CEST

This archive was generated by hypermail 2.3.0 : Sun Oct 11 2015 - 18:48:11 CEST