Thank you, I can now search with grep (although not incrementally) and I can display something different than what is returned.
I think I may need to extend (or simplify) dmenu to allow for search with an arbitrary tool recieving input and returning output from/to dmenu. I can't think of the most idiomatic/elegant way to do this. Would it be good to pass named pipes as arguments? On Sun, May 9, 2010 at 9:06 AM, Hiltjo Posthuma <hil...@codemadness.org> wrote: > On Sat, May 8, 2010 at 9:50 PM, Andreas Wagner <andreasbwag...@gmail.com> > wrote: >> >> Hello, >> >> I am writing some shell scripts for an uzbl bookmarker with full text >> search of webpages bookmarked. It wgets the html and takes the md5sum >> (of the page), the url and the title and puts them, space separated in >> a file. The downloaded page's filename is changed to the md5sum. >> >> I was trying a way to do the full text search of the pages with an >> arbitrary tool such as grep but display the corresponding titles+urls >> of the pages in the dmenu. >> >> Is this currently possible with dmenu? >> >> Thanks, >> Andreas > > I was trying to do something similar and I wrote a patch to make dmenu > output the index of the item instead of the text. The patch adds a "-n" > option to toggle making it output an index instead of the text, also you > must select the exact item (it doesnt output the input text). Patch added as > attachment. I hope you find it useful. >