On Wed, Oct 21, 2009 at 1:08 PM, Dieter Plaetinck <die...@plaetinck.be>wrote:
> On Wed, 21 Oct 2009 11:04:48 -0400 (EDT) > Peter John Hartman <peterjohnhart...@gmail.com> wrote: > > > > > > > On Wed, 21 Oct 2009, Anselm R Garbe wrote: > > > > > 2009/10/21 pancake <panc...@youterm.com>: > > >> I always use shift+insert or middleclick for pasting, what's the > > >> unix way to paste? > > >> ^p is already supported in surf, and mozilla load pages if you > > >> paste them in the > > >> web canvas...so which is the 'correct' one? :) > > >> > > >> And yeah i didn't mention ^C^V because I never use them and can > > >> break other keybindings of the underlying app. Like the > > >> unix-editing for textentries on gtk > > >> apps, because ^W is the default keybinding for closing windows on > > >> Gnome apps. > > > > > > In dmenu we don't need to worry about other apps, because dmenu > > > grabs the keyboard and during the time until ungrabbing it we can > > > override any key combination we like. That's why I propose having a > > > Key interface in dmenu like in dwm that can be used to execute a > > > command to insert at current text position and good is. I prefer ^p > > > to Shift-Insert by default. > > > > > > Kind regards, > > > Anselm > > > > > > > Ctl-p is fine by me as long as it is established in config.h (i.e.\ > > as long as the user has an easy chance at over-riding it). > > > > Peter > > > > what about commandline flags? dmenu --bind ^p /path/to/script.sh --bind > shift-insert /path/to/other-script.sh > > i like the general idea, though i'm not sure if it's worth the hassle > (bloat?). > > Dieter > > A config.h approach seems best here, dmenu already does that for defaults and it could be inconsistent if the calling app chose demnu's bindings rather than dmenu choosing for itself.