Return to repo list

suckless-gf-dmenu

Gentoo-friendly patches for Suckless's dmenu.
Return to HMagellan.com

incremental-nodoc.patch (612B)


      1 diff --git a/dmenu.c b/dmenu.c
      2 index e0c2f80..7f1be56 100644
      3 --- a/dmenu.c
      4 +++ b/dmenu.c
      5 @@ -447,6 +447,10 @@ keypress(XKeyEvent *ev)
      6  		match();
      7  		break;
      8  	}
      9 +	if (incremental) {
     10 +		puts(text);
     11 +		fflush(stdout);
     12 +	}
     13  	drawmenu();
     14  }
     15  
     16 @@ -629,6 +633,8 @@ main(int argc, char *argv[])
     17  			topbar = 0;
     18  		else if (!strcmp(argv[i], "-f"))   /* grabs keyboard before reading stdin */
     19  			fast = 1;
     20 +		else if (!strcmp(argv[i], "-r"))   /* incremental */
     21 +			incremental = 1;
     22  		else if (!strcmp(argv[i], "-i")) { /* case-insensitive item matching */
     23  			fstrncmp = strncasecmp;
     24  			fstrstr = cistrstr;
     25 -- 
     26 2.8.3
     27