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 necessary, and enters it

- cursor in minbuffer
=> M-x leaves the minibuffer and closes it

OK?

I proposed the very same thing to someone in the users list; so obviously it's OK for me ;-)


Jürgen

[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.

Some comments below:

Index: src/frontends/qt4/QCommandBuffer.h
===================================================================
--- src/frontends/qt4/QCommandBuffer.h  (Revision 18054)
+++ src/frontends/qt4/QCommandBuffer.h  (Arbeitskopie)
@@ -43,6 +43,8 @@
        void up();
        /// down
        void down();
+       /// leave and hide the command buffer
+       void hideCommandBuffer();

hide() is good enough. We already know that we are using the command buffer.

But instead of continuing those hacks in the minibuffer and reimplementing a toolbar in a widget, why not making it a toolbar proper? It should not be very hard but maybe not 1.5.0 stuff though...

Abdel.

Reply via email to