[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Thu, 29 Oct 2009 09:44:53 +0000 (UTC)

changeset: 331:bd2e57daeb29
tag: tip
user: x_AT_eol.org
date: Thu Oct 29 10:45:25 2009 +0100
files: surf.suckless.org/files/edit_source.md
description:
added surf.suckless.org/files/edit_source.md


diff -r 774e032e9c77 -r bd2e57daeb29 surf.suckless.org/files/edit_source.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/surf.suckless.org/files/edit_source.md Thu Oct 29 10:45:25 2009 +0100
_AT_@ -0,0 +1,33 @@
+EDIT SOURCE
+===========
+
+Description
+-----------
+
+This script named say editurl allows the user to edit the source of the current page without fetching the page again
+in three keystrokes:
+
+ #!/bin/sh
+ dir=~/.surf/tmpedit
+ name=`ls $dir | wc -l`
+ file=$dir/$name.html
+ sselp > $file && urxvtc -e vi $file
+
+To launch it, you can add the following in config.h above the line "static Key keys[] = {" :
+
+ #define EDIT { .v = (char *[]){ "/bin/sh", "-c", "editurl", NULL } }
+
+and the following in the "static Key keys[] = {" part
+
+ { MODKEY, GDK_e, spawn, EDIT },
+
+The three required keystrokes are :
+modkey o
+modkey a
+modkey e
+
+
+Author
+------
+
+- Julien Steinhauser <[julien.steinhauser_AT_orange.fr](mailto:julien.steinhauser_AT_orange.fr)>
Received on Thu Oct 29 2009 - 10:44:53 CET

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