Re: [dev] [dmenu] A clickable dmenu is a dream?

From: julien steinhauser <julien.steinhauser_AT_orange.fr>
Date: Sun, 28 Mar 2010 22:25:06 +0200

On Sun, Mar 28, 2010 at 08:14:56PM +0100, Connor Lane Smith wrote:
>
> Hey,
>
> On 28 March 2010 19:28, Antoni Grzymala <antoni_AT_chopin.edu.pl> wrote:
> > This might be getting off topic, but has the possibility of filename
> > completion in the argument field been considered or written
>
> The problem with this idea is that it adds rather a lot of complexity
> to a program intended to simply be a menu. dwm simply uses dmenu_run,
> a shell script wrapper for the more general dmenu. To add things like
> filename tab completion would undermine the simplicity and generality
> of the idea.

I agree,
I don't think the feature is worth the pain, it is easily done
with a wrapper script like dmenu_run with a one step more
to select the file one wants to open.

#!/bin/sh
exe=`dmenu_path | dmenu ${1+"$@"}`
file=`ls -p |grep -v / |dmenu` # or something else
exec $exe $file
Received on Sun Mar 28 2010 - 20:25:06 UTC

This archive was generated by hypermail 2.2.0 : Sun Mar 28 2010 - 20:36:02 UTC