Re: [dev] [patch] xmms like pattern matching for dmenu (update to hg tip)

2010-08-11 Thread StephenB
On 11 August 2010 14:25, Connor Lane Smith wrote: > > That was a lie. The patch fails as of r357. I'm sure it will be easy to fix, I'll have a look later tonight, as well as pushing it to the wiki. StephenB

Re: [dev] [patch] xmms like pattern matching for dmenu (update to hg tip)

2010-08-09 Thread StephenB
Corrected missing .TP in man source. On 9 August 2010 22:35, StephenB wrote: > On 9 August 2010 12:26, Connor Lane Smith wrote: > >> Thanks for the patch, Stephen. One small bug, however: the added flag >> should be above the first usage(), since it is a single flag (it take

Re: [dev] [patch] xmms like pattern matching for dmenu (update to hg tip)

2010-08-09 Thread StephenB
On 9 August 2010 12:26, Connor Lane Smith wrote: > Thanks for the patch, Stephen. One small bug, however: the added flag > should be above the first usage(), since it is a single flag (it takes > no value). If you try to run "dmenu_run -xs" it will fail because it > expects another argument. You

Re: [dev] [patch] xmms like pattern matching for dmenu (update to hg tip)

2010-08-07 Thread StephenB
On 7 August 2010 20:36, Robert Ransom wrote: > On Sat, 7 Aug 2010 17:23:13 +0100 > StephenB wrote: > > > Just to make clear, this patch is an updated version of the one here: > > http://tools.suckless.org/dmenu/patches/xmms-like_pattern_matching > > http://suckless.or

Re: [dev] [patch] xmms like pattern matching for dmenu (update to hg tip)

2010-08-07 Thread StephenB
On 7 August 2010 14:25, Rob wrote: > Uh, in tokenise, shouldn't > strncpy(tmp, pat, strlen(pat)); > be > strncpy(tmp, pat, sizeof tmp); ? we only tokenise text, so it can simplify to: unsigned int tokenize(char **tok) { unsigned int i = 0; char tmp[sizeof text] = {0}; strcpy(tmp, text); I als

[dev] [patch] xmms like pattern matching for dmenu (update to hg tip)

2010-08-07 Thread StephenB
see: (this patch is against 352) http://pastebin.com/raw.php?i=4sh7ZTuJ I use this all the time for uzbl browser history and bookmarks. regards, StephenB