​​
​​
​On Tue, Feb 21, 2017 at 7:52 PM, Edward K. Ream <[email protected]>
wrote:

​> ​
The fact that Leo uses Tk names is an accident of history. Changing those
names would not simplify the code
​...
And there is no way I am going to force users to change their existing key
bindings.  Yes, we could consider *adding* even more alternative key
bindings, but that would complicate some of the most difficult code in Leo,
and perhaps worse, complicate Leo's docs related to key bindings.
​

​> ​
So it appears that the code should only strokes, not ascii chars.  But this
doesn't really eliminate all complexity.  We would still have to
distinguish between strokes that correspond to printable ascii chars and
those that don't.  This seemingly minor distinction has a way of
percolating everywhere.

​Two more ideas that I have been thinking about recently:​


​1. One possibility, which *didn't exist* when I first created the python
version of Leo, would be to make g.KeyBinding a ​subclass of "unicode",
that is, str on Python 3 and unicode on Python 2. Again, this would be an
experimental project. It's not clear how much this would help.

2. The code that deduces the char and stroke corresponding to a Qt key code
is part of the LeoQtEventFilter class.  Instead, it should be part of the
LeoQtGui class, so as to make the code accessible via g.app.gui. This can
be done today, as part of fixing #416. Even this will require quite a bit
of cff'ing, but it's a hangnail that should be fixed asap.

And a few more concluding remarks, in the spirit of GTD, so I can move on:

git and git branch are important enabling tools. Without them, and cff, a
big reorg like this would be beyond my capabilities. Really.

I enjoy thinking about and talking about those parts of Leo that really do
need improvement. I think of them as "where the bodies are buried" :-)

Having said that, I'd like people to recognize that "simplifying" Leo might
be considerably less "simple" than they imagine. I have the fond, perhaps
vain, hope that more people (not you, John) would have a bit more respect
for my experience, design and programming abilities and commitment to
quality.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to