sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 082a1332ad3c5f0621aefc2f80778f6072188b5c
parent bcb5d5ff3d6785c354c4f81e7b9ac0053b060a1d
Author: Rob Pilling <my name at gmail dot com>
Date:   Sun, 25 Jul 2010 19:09:06 +0100

Added incremental markdown file and tab completion patch
Diffstat:
Atools.suckless.org/dmenu/patches/dmenu-tip-tab.diff | 16++++++++++++++++
Atools.suckless.org/dmenu/patches/incremental.md | 17+++++++++++++++++
Atools.suckless.org/dmenu/patches/tab.md | 9+++++++++
3 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/tools.suckless.org/dmenu/patches/dmenu-tip-tab.diff b/tools.suckless.org/dmenu/patches/dmenu-tip-tab.diff @@ -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 +@@ -326,9 +326,10 @@ + } + break; + case XK_Tab: +- if(sel) ++ if(sel) { + strncpy(text, sel->text, sizeof text); +- dinput(); ++ match(); ++ } + break; + } + drawbar(); diff --git a/tools.suckless.org/dmenu/patches/incremental.md b/tools.suckless.org/dmenu/patches/incremental.md @@ -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 --git a/tools.suckless.org/dmenu/patches/tab.md b/tools.suckless.org/dmenu/patches/tab.md @@ -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)