Re: [dev] A dmenu that includes all additional features

2011-09-15 Thread Fernando C.V.
On Sun, Sep 11, 2011 at 11:09 PM, Dieter Plaetinck wrote: > * stable sort. @CLS why I want this: say, for an application launcher, if I > provide input to dmenu ordered by frequency, that means commands at > the top are more important then those that come after. (where important > means: is more l

Re: [dev] A dmenu that includes all additional features

2011-09-15 Thread Connor Lane Smith
On 12 September 2011 10:51, Connor Lane Smith wrote: > Yeah, that's true. I think 'unstable' token matching would be quite > slow (comparative to the rest of dmenu), and involve a lot of code > ("). Maybe if someone's interested they can give it a shot. In the attached patched I've replaced stand

Re: [dev] A dmenu that includes all additional features

2011-09-12 Thread David J Patrick
On Mon, Sep 12, 2011 at 10:05:16PM +0100, Rob wrote: > I don't think this would be worth it, suckless tools are supposed to be > lightweight, even someone who hasn't seen the code before can make > changes, they don't have to be an expert at C, so merging a few lines > here and there is no big deal

Re: [dev] A dmenu that includes all additional features

2011-09-12 Thread Rob
On 12 September 2011 14:26, Dieter Plaetinck wrote: > I wonder if we could restructure the code a bit in such a way, that > all patches can be independent again and user can combine the patches > they want without hitting conflicts. I don't think this would be worth it, suckless tools are suppose

Re: [dev] A dmenu that includes all additional features

2011-09-12 Thread Peter John Hartman
> > > How do people feel about tok in mainline? Might be worth discussing. I also like it. It is useful for filenames: zathura $(find *.pdf | dmenu -t) Peter -- sic dicit magister P University of Toronto / Fordham University Collins Hall B06; Office Hours TF10-12 http://individual.utoronto.ca/

Re: [dev] A dmenu that includes all additional features

2011-09-12 Thread Dieter Plaetinck
On Mon, 12 Sep 2011 16:34:04 +0200 sta...@cs.tu-berlin.de wrote: > * Connor Lane Smith [2011-09-12 15:52]: > > How do people feel about tok in mainline? Might be worth discussing. > > token matching? almost meaningless for program names. very helpful for > natural language, structured entries (d

Re: [dev] A dmenu that includes all additional features

2011-09-12 Thread stanio
* Connor Lane Smith [2011-09-12 15:52]: > How do people feel about tok in mainline? Might be worth discussing. token matching? almost meaningless for program names. very helpful for natural language, structured entries (directory tree, URIs). So: +1 -- stanio_

Re: [dev] A dmenu that includes all additional features

2011-09-12 Thread Connor Lane Smith
On 12 September 2011 14:26, Dieter Plaetinck wrote: > pushed where? http://hg.suckless.org/sites Anyone can commit, but we pull it to the actual site manually. (And I don't have my key atm.) So feel free to add stuff yourself. :] > I wonder if we could restructure the code a bit in such a way,

Re: [dev] A dmenu that includes all additional features

2011-09-12 Thread Dieter Plaetinck
On Mon, 12 Sep 2011 10:51:48 +0100 Connor Lane Smith wrote: > On 12 September 2011 10:20, Dieter Plaetinck > wrote: > > Thank you for that bloat patch! > > I didn't realise it could be this simple. > > dmenu is very easy to hack. ;) > > > I did see a bug: > > when using token matching, it seem

Re: [dev] A dmenu that includes all additional features

2011-09-12 Thread Connor Lane Smith
On 12 September 2011 10:20, Dieter Plaetinck wrote: > Thank you for that bloat patch! > I didn't realise it could be this simple. dmenu is very easy to hack. ;) > I did see a bug: > when using token matching, it seems dmenu will always do stable sort, even > when -s is not given. Yeah, that's

Re: [dev] A dmenu that includes all additional features

2011-09-12 Thread Dieter Plaetinck
On Sun, 11 Sep 2011 22:49:38 +0100 Connor Lane Smith wrote: > Attached are two diffs, my token patch updated to 4.4, and a bloat > patch ;) which provides everything you wanted. > > cls Thank you for that bloat patch! I didn't realise it could be this simple. I did see a bug: when using token m

Re: [dev] A dmenu that includes all additional features

2011-09-11 Thread Connor Lane Smith
Attached are two diffs, my token patch updated to 4.4, and a bloat patch ;) which provides everything you wanted. cls diff -r f6b31468f983 dmenu.c --- a/dmenu.c Sun Jul 24 20:04:58 2011 +0100 +++ b/dmenu.c Sun Sep 11 22:36:01 2011 +0100 @@ -30,7 +30,8 @@ static void grabkeyboard(void); static vo

Re: [dev] A dmenu that includes all additional features

2011-09-11 Thread Dieter Plaetinck
On Thu, 8 Sep 2011 15:09:45 -0400 Peter John Hartman wrote: > I'm a lazy list reader, but aren't all of those already in dmenu > tip? Can't you list the features that *aren't* in "dmenu as we know > it"? not included: * multi select, but the argument of Hiro (that this is not really needed) ma

Re: [dev] A dmenu that includes all additional features

2011-09-09 Thread hiro
Then delete for gods sake! On 09.09.2011, Connor Lane Smith wrote: > On 9 September 2011 10:29, hiro <23h...@googlemail.com> wrote: >> Couldn't you just run dmenu in a loop instead of using multiselect? > > Yes. > > $ while foo | dmenu; do :; done > > cls > >

Re: [dev] A dmenu that includes all additional features

2011-09-09 Thread Connor Lane Smith
On 9 September 2011 10:29, hiro <23h...@googlemail.com> wrote: > Couldn't you just run dmenu in a loop instead of using multiselect? Yes. $ while foo | dmenu; do :; done cls

Re: [dev] A dmenu that includes all additional features

2011-09-09 Thread hiro
1[1],2[null],3[2], right? This sucks. Couldn't you just run dmenu in a loop instead of using multiselect?

Re: [dev] A dmenu that includes all additional features

2011-09-09 Thread Connor Lane Smith
On 8 September 2011 20:09, Peter John Hartman wrote: > I'm a lazy list reader, but aren't all of those already in dmenu tip?  Can't > you list the features that *aren't* in "dmenu as we know it"? The list would be, 1. "XMMS-style" token matching 2. "Stable sort" 3. Multi-select 1 and 3 are b

Re: [dev] A dmenu that includes all additional features

2011-09-08 Thread hiro
what the fuck is multi select, token matching and best match?

Re: [dev] A dmenu that includes all additional features

2011-09-08 Thread Moritz Wilhelmy
On Thu, Sep 08, 2011 at 21:00:31 +0200, Dieter Plaetinck wrote: > Hi, > in an attempt to get a dmenu that includes all features I want, I've been > trying to combine patches from various sources to various versions of dmenu. > This has proven to be a pain, as patches conflict with each other (or

Re: [dev] A dmenu that includes all additional features

2011-09-08 Thread Peter John Hartman
On Thu, Sep 08, 2011 at 09:00:31PM +0200, Dieter Plaetinck wrote: > Hi, > in an attempt to get a dmenu that includes all features I want, I've been > trying to combine patches from various sources to various versions of dmenu. > This has proven to be a pain, as patches conflict with each other (or

[dev] A dmenu that includes all additional features

2011-09-08 Thread Dieter Plaetinck
Hi, in an attempt to get a dmenu that includes all features I want, I've been trying to combine patches from various sources to various versions of dmenu. This has proven to be a pain, as patches conflict with each other (or sometimes apply, but still break functionality) and/or loose compatibili