[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Sun, 25 Jul 2010 17:57:49 +0000 (UTC)

changeset: 596:66a54331a30c
tag: tip
user: Rob Pilling <my name at gmail dot com>
date: Sun Jul 25 19:09:06 2010 +0100
files: tools.suckless.org/dmenu/patches/dmenu-tip-tab.diff tools.suckless.org/dmenu/patches/incremental.md tools.suckless.org/dmenu/patches/tab.md
description:
Added incremental markdown file and tab completion patch


diff -r e94bde816749 -r 66a54331a30c tools.suckless.org/dmenu/patches/dmenu-tip-tab.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools.suckless.org/dmenu/patches/dmenu-tip-tab.diff Sun Jul 25 19:09:06 2010 +0100
_AT_@ -0,0 +1,16 @@
+diff -r 67d8f41d51d7 dmenu.c
+--- a/dmenu.c Fri Jul 02 06:49:05 2010 +0100
++++ b/dmenu.c Sun Jul 25 16:41:23 2010 +0100
+_AT_@ -326,9 +326,10 @@
+ }
+ break;
+ case XK_Tab:
+- if(sel)
++ if(sel) {
+ strncpy(text, sel->text, sizeof text);
+- dinput();
++ match();
++ }
+ break;
+ }
+ drawbar();
diff -r e94bde816749 -r 66a54331a30c tools.suckless.org/dmenu/patches/incremental.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools.suckless.org/dmenu/patches/incremental.md Sun Jul 25 19:09:06 2010 +0100
_AT_@ -0,0 +1,17 @@
+INCREMENTAL OUTPUT
+==================
+
+This patch causes dmenu to print out the current text each time a key is pressed.
+
+This is useful as an incremental search feature, for example in surf's config.h:
+
+`#define INCSEARCH { .v = (char *[]){ "/bin/sh", "-c", \
+ "dmenu -r < /dev/null | while read -r find;do xprop -id $0 -f _SURF_FIND 8s "\
+ "-set _SURF_FIND \"$find\";done", \
+ winid, NULL } }`
+
+
+Download
+--------
+
+* [dmenu-tip-incremental.diff](dmenu-tip-incremental.diff)
diff -r e94bde816749 -r 66a54331a30c tools.suckless.org/dmenu/patches/tab.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools.suckless.org/dmenu/patches/tab.md Sun Jul 25 19:09:06 2010 +0100
_AT_@ -0,0 +1,9 @@
+TAB HANDLING
+===============
+
+This patch leaves the item list in dmenu when tab is pressed (as opposed to clearing the list of completions)
+
+Download
+--------
+
+* [dmenu-tip-tab.diff](dmenu-tip-tab.diff)
Received on Sun Jul 25 2010 - 19:57:49 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:31:24 CEST