On Wed, Nov 12, 2008 at 4:41 PM, Edward K. Ream <[EMAIL PROTECTED]> wrote:

>> It should not be necessary for leo to do anything this drastic when
>> enter is pressed. It slows down the text editing, potentially quite a
>> bit.
>
> I'm sorry, but this is simply not correct.
> leoEditCommands.selfInsertCommand ensures that keys like tab,
> backspace and return are handled properly.  This code does not exist
> in any Qt text widget.  Furthermore, handling keys in the minibuffer

Note that I said *this drastic*. It's ok to pass enter to core, but it
doesn't make sense to edit the text in that fashion, when the only
thing that should happen is inserting a linefeed and doing some checks
for whatever. It can be seen that the text before cursor was edited,
which shouldn't happen.

> is even more complicated--there is simply no alternative to catching
> those keys and doing something non-standard with them.  Finally, none

I'd be inclined to say it is an alternative - though probably not in
the "standard" code path. That is, it probably can't boast to be the
"official" qt plugin, but would be useful for people who don't care
about keybinding configurability, but still like to use leo with
snappier text editing (i.e I'm describing my own use case here).

Once the qt plugin is "ready" and fully functional, it may make sense
to just copy it over to "qtlite" plugin, where such simplifications
can be experimented with. If they can be done without losing anything
significant, they can be rolled over to the main qt plugin. This is
analogous to what has happened with many technologies (mozilla =>
firefox, mozilla => galeon, various xfree86/xorg experiments, sgml =>
xml, C++ => Java, html => xhtml).

On the other hand, this may no be needed at all - it may be just a
matter of optimizing a few bits here and there. Hopefully this is the
case :-).

BTW, ctrl+I, crtr+r and friends still don't work when the focus is not
in the body pane (this is with QTextEdit).

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to