[dev] [dmenu] regexp with dmenu?

2014-05-14 Thread Thuban
Hi all, I was wondering if there is any existing solution to have dmenu understanding regular expression? Regards -- ,--. : /` ) Thuban | `-'PubKey : http://yeuxdelibad.net/Divers/thuban.pub \_ KeyID : 0x54CD2F2F Envoyé à partir de mon serveur auto-hébergé signature.asc

Re: [dev] [dmenu] regexp with dmenu?

2014-05-14 Thread FRIGN
On Wed, 14 May 2014 13:46:07 +0200 Thuban thu...@yeuxdelibad.net wrote: Hi all, I was wondering if there is any existing solution to have dmenu understanding regular expression? Hey Thuban. Regexes in which context? Cheers FRIGN -- FRIGN d...@frign.de

Re: [dev] [dmenu] regexp with dmenu?

2014-05-14 Thread Dimitris Papastamos
On Wed, May 14, 2014 at 01:46:07PM +0200, Thuban wrote: Hi all, I was wondering if there is any existing solution to have dmenu understanding regular expression? I don't fully follow, you want to use regular expressions to filter the input before selection? or? If so you can filter the input

Re: [dev] [dmenu] regexp with dmenu?

2014-05-14 Thread Thuban
* FRIGN d...@frign.de le [14-05-2014 13:53:53 +0200]: On Wed, 14 May 2014 13:46:07 +0200 Thuban thu...@yeuxdelibad.net wrote: Hi all, I was wondering if there is any existing solution to have dmenu understanding regular expression? Hey Thuban. Regexes in which context? I was

Re: [dev] [dmenu] regexp with dmenu?

2014-05-14 Thread Chris Down
Thuban writes: Then, we can output with dmenu `filea fileabc fileabcde` if we write : `filea*` ( yes, its a very simple example...) Are you really asking for regular expressions, or just globbing? Your example seems to suggest you want the latter. pgpK_MXwaRxUn.pgp Description: PGP signature

Re: [dev] [dmenu] regexp with dmenu?

2014-05-14 Thread koneu
Thuban wrote: Then, we can output with dmenu `filea fileabc fileabcde` if we write : `filea*` ( yes, its a very simple example...) So you want to output more than one element. This could be quite neat indeed for certain use cases, and a simple implementation would be to just write all the

Re: [dev] [dmenu] regexp with dmenu?

2014-05-14 Thread Markus Teich
Dimitris Papastamos wrote: I don't fully follow, you want to use regular expressions to filter the input before selection? or? I think he wants to enter a regex (or globbing star) and get all results matching the regex. As far as I know regexes are mainly used to get *multiple* matches and not

Re: [dev] [dmenu] regexp with dmenu?

2014-05-14 Thread Amadeus Folego
On Wed, May 14, 2014 at 01:46:07PM +0200, Thuban wrote: Hi all, I was wondering if there is any existing solution to have dmenu understanding regular expression? There is a patch that adds fuzzy matching support to dmenu, it's not exactly the same thing, but may work for you. [1]:

Re: [dev] [dmenu] regexp with dmenu?

2014-05-14 Thread Dimitris Papastamos
On Wed, May 14, 2014 at 03:28:08PM +0200, Markus Teich wrote: Dimitris Papastamos wrote: I don't fully follow, you want to use regular expressions to filter the input before selection? or? I think he wants to enter a regex (or globbing star) and get all results matching the regex. Yeah

Re: [dev] [dmenu] regexp with dmenu?

2014-05-14 Thread Thuban
Now if you want an interactive grep, I don't think dmenu is the tool for it. It is designed to only output one result string and not multiple ones. Interactive grep, this is it exactly. (Sorry, I have some trouble to find my words in english...). I'll look at the fuzzy patch or I'll try

Re: [dev] [dmenu] regexp with dmenu?

2014-05-14 Thread Markus Teich
Thuban wrote: My needs Aren't very important indeed, I just had this idea whan I was looking for a song in a mpd playlist : I knew the artist and the last word of the song title, and I wish I could write in dmenu : `Two Steps From*Torment` So you actually wish to get only one result. For your