[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Mon, 19 Oct 2009 03:35:50 +0000 (UTC)

changeset: 309:7eac3a836372
tag: tip
user: Jason Thigpen (cdarwin) <darwin_AT_senet.us>
date: Mon Oct 19 19:36:40 2009 -0400
files: surf.suckless.org/patches/history-0.1.diff surf.suckless.org/patches/history.md surf.suckless.org/patches/surf-0.2-history.diff
description:
minor updates to surf history patch page


diff -r a6db1030e000 -r 7eac3a836372 surf.suckless.org/patches/history-0.1.diff
--- a/surf.suckless.org/patches/history-0.1.diff Mon Oct 19 15:33:28 2009 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
_AT_@ -1,29 +0,0 @@
---- surf.c 2009-10-17 03:00:22.000000000 -0400
-+++ surf.c 2009-10-19 15:03:16.000000000 -0400
-_AT_@ -160,6 +160,7 @@ cleanup(void) {
- while(clients)
- destroyclient(clients);
- g_free(cookiefile);
-+ g_free(historyfile);
- g_free(dldir);
- g_free(scriptfile);
- g_free(stylefile);
-_AT_@ -420,6 +421,10 @@ loaduri(Client *c, const Arg *arg) {
- u = g_strrstr(uri, "://") ? g_strdup(uri)
- : g_strdup_printf("http://%s", uri);
- webkit_web_view_load_uri(c->view, u);
-+ FILE *f;
-+ f = fopen(historyfile, "a+");
-+ fprintf(f, "%s\n", u);
-+ fclose(f);
- c->progress = 0;
- c->title = copystr(&c->title, u);
- g_free(u);
-_AT_@ -674,6 +679,7 @@ setup(void) {
-
- /* create dirs and files */
- cookiefile = buildpath(cookiefile);
-+ historyfile = buildpath(historyfile);
- dldir = buildpath(dldir);
- scriptfile = buildpath(scriptfile);
- stylefile = buildpath(stylefile);
diff -r a6db1030e000 -r 7eac3a836372 surf.suckless.org/patches/history.md
--- a/surf.suckless.org/patches/history.md Mon Oct 19 15:33:28 2009 -0400
+++ b/surf.suckless.org/patches/history.md Mon Oct 19 19:36:40 2009 -0400
_AT_@ -6,10 +6,13 @@
 
 This little patch writes the the loaded uri to a file.
 
+wart_ also privides a little shell script that uses dmenu to display and select an uri
+ cat ~/.surf/history | sort -r | uniq | dmenu -l 10 -b -i | xprop -id `cat ~/.surf/id` -f _SURF_URI 8s -set _SURF_URI
+
 Download
 --------
 
-* [history-0.1.diff](history-0.1.diff) (891) (20091019)
+* [surf-0.2-history.diff](surf-0.2-history.diff) (891) (20091019)
 
 Authors
 -------
diff -r a6db1030e000 -r 7eac3a836372 surf.suckless.org/patches/surf-0.2-history.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/surf.suckless.org/patches/surf-0.2-history.diff Mon Oct 19 19:36:40 2009 -0400
_AT_@ -0,0 +1,29 @@
+--- surf.c 2009-10-17 03:00:22.000000000 -0400
++++ surf.c 2009-10-19 15:03:16.000000000 -0400
+_AT_@ -160,6 +160,7 @@ cleanup(void) {
+ while(clients)
+ destroyclient(clients);
+ g_free(cookiefile);
++ g_free(historyfile);
+ g_free(dldir);
+ g_free(scriptfile);
+ g_free(stylefile);
+_AT_@ -420,6 +421,10 @@ loaduri(Client *c, const Arg *arg) {
+ u = g_strrstr(uri, "://") ? g_strdup(uri)
+ : g_strdup_printf("http://%s", uri);
+ webkit_web_view_load_uri(c->view, u);
++ FILE *f;
++ f = fopen(historyfile, "a+");
++ fprintf(f, "%s\n", u);
++ fclose(f);
+ c->progress = 0;
+ c->title = copystr(&c->title, u);
+ g_free(u);
+_AT_@ -674,6 +679,7 @@ setup(void) {
+
+ /* create dirs and files */
+ cookiefile = buildpath(cookiefile);
++ historyfile = buildpath(historyfile);
+ dldir = buildpath(dldir);
+ scriptfile = buildpath(scriptfile);
+ stylefile = buildpath(stylefile);
Received on Mon Oct 19 2009 - 05:35:50 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:30:55 CEST