commit 4145e33e44e56c3919fa688a9bdb51d3b1e20c37
parent b54ea662e50d2cf0d2e895327ee612b843c484a6
Author: Jason Thigpen (cdarwin) <darwin@senet.us>
Date: Mon, 19 Oct 2009 15:33:28 -0400
added history patch to surf
Diffstat:
2 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/surf.suckless.org/patches/history-0.1.diff b/surf.suckless.org/patches/history-0.1.diff
@@ -0,0 +1,29 @@
+--- surf.c 2009-10-17 03:00:22.000000000 -0400
++++ surf.c 2009-10-19 15:03:16.000000000 -0400
+@@ -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);
+@@ -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);
+@@ -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 --git a/surf.suckless.org/patches/history.md b/surf.suckless.org/patches/history.md
@@ -0,0 +1,18 @@
+HISTORY
+=======
+
+Description
+-----------
+
+This little patch writes the the loaded uri to a file.
+
+Download
+--------
+
+* [history-0.1.diff](history-0.1.diff) (891) (20091019)
+
+Authors
+-------
+
+* Jason Thigpen (cdarwin) <[darwin@senet.us](mailto:darwin@senet.us)>
+* wart_