Re: [patch] hide minibuffer

2007-04-29 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > But it would only trigger if the minibuffer toolbar is in auto mode. I understood. However, this would be an enhancement, not a contradicting approach. > I'll try to implement it later to see if it really makes sense. It might make sense indeed, and satisfy both u

Re: [patch] hide minibuffer

2007-04-29 Thread Jean-Marc Lasgouttes
> "Jürgen" == Jürgen Spitzmüller <[EMAIL PROTECTED]> writes: Jürgen> Another con is that some people do not like the lyxview area Jürgen> to be resized (which happens if the minibuffer hides), so I Jürgen> wouldn't make this the general behaviour (even if the Jürgen> implementation would be tr

Re: [patch] hide minibuffer

2007-04-29 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > OK, then call it hideParent() or hideToolbar() so that we know that this > is really the toolbar that we're hiding. done (hideParent()). > > I have counted a slight majority for my solution, so I'll put it in. > > Fine. done. Jürgen

Re: [patch] hide minibuffer

2007-04-29 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: but this interferes with Qt::widget->hide(). So? You don't need QWidget::hide() so better use it. I had it called hide() in the first place, which resulted in unexpected behaviour (all the widgets on the minibuffer disappeared, but not the

Re: [patch] hide minibuffer

2007-04-29 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > > but this interferes with Qt::widget->hide(). > > So? You don't need QWidget::hide() so better use it. I had it called hide() in the first place, which resulted in unexpected behaviour (all the widgets on the minibuffer disappeared, but not the minibuffer itself). I t

Re: [patch] hide minibuffer

2007-04-28 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: [1] Ideally, it should grab what is defined for "command-execute" and use that. But I don't know how to get that information from the frontend side. I don't understand what you mean here. Please clarify. It's hardcoded to M-x for closing. If

Re: [patch] hide minibuffer

2007-04-28 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > > [1] Ideally, it should grab what is defined for "command-execute" and use > > that. But I don't know how to get that information from the frontend > > side. > > I don't understand what you mean here. Please clarify. It's hardcoded to M-x for closing. If someone changes

Re: [patch] hide minibuffer

2007-04-28 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: the attached patch implements a shortcut which leaves and closes the minibuffer. It's hardcoded to M-x[1] and (intentionally) only works when the cursor is inside the command buffer. So the behaviour would be - cursor in main view => M-x opens the minibuffer, if neces

Re: [patch] hide minibuffer

2007-04-28 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > Would it be enough to be sure that the existing autotoolbars scheme > makes the minibuffer toggle on/off as needed? I'd prefer manual control. Jürgen

Re: [patch] hide minibuffer

2007-04-28 Thread Jürgen Spitzmüller
[EMAIL PROTECTED] wrote: > > personally i would prefer that the minibuffer would auto hide if it > > looses focus (or after enter)... > > A few times I've copied-and-pasted things to the mini-buffer, i.e. long > command sequences. Here it would have been annoying if it closed > automaically just be

Re: [patch] hide minibuffer

2007-04-28 Thread Jürgen Spitzmüller
Edwin Leuven wrote: > perhaps we should simply have a toggleToolbar(string toolbarname) > function/slot? We have this. Jürgen

Re: [patch] hide minibuffer

2007-04-28 Thread Jean-Marc Lasgouttes
> "Edwin" == Edwin Leuven <[EMAIL PROTECTED]> writes: Edwin> On Saturday 28 April 2007 9:45:37 am Jürgen Spitzmüller wrote: >> - cursor in minbuffer => M-x leaves the minibuffer and closes it Edwin> personally i would prefer that the minibuffer would auto hide Edwin> if it looses focus (or af

Re: [patch] hide minibuffer

2007-04-28 Thread Edwin Leuven
perhaps we should simply have a toggleToolbar(string toolbarname) function/slot?

Re: [patch] hide minibuffer

2007-04-28 Thread christian . ridderstrom
On Sat, 28 Apr 2007, Edwin Leuven wrote: On Saturday 28 April 2007 9:45:37 am Jürgen Spitzmüller wrote: - cursor in minbuffer => M-x leaves the minibuffer and closes it personally i would prefer that the minibuffer would auto hide if it looses focus (or after enter)... A few times I've c

Re: [patch] hide minibuffer

2007-04-28 Thread Edwin Leuven
On Saturday 28 April 2007 9:45:37 am Jürgen Spitzmüller wrote: - cursor in minbuffer => M-x leaves the minibuffer and closes it personally i would prefer that the minibuffer would auto hide if it looses focus (or after enter)...

Re: [patch] hide minibuffer

2007-04-28 Thread José Matos
On Saturday 28 April 2007 9:45:37 am Jürgen Spitzmüller wrote: > the attached patch implements a shortcut which leaves and closes the > minibuffer. It's hardcoded to M-x[1] and (intentionally) only works when > the cursor is inside the command buffer. So the behaviour would be > > - cursor in main

[patch] hide minibuffer

2007-04-28 Thread Jürgen Spitzmüller
the attached patch implements a shortcut which leaves and closes the minibuffer. It's hardcoded to M-x[1] and (intentionally) only works when the cursor is inside the command buffer. So the behaviour would be - cursor in main view => M-x opens the minibuffer, if necessary, and enters it - curso