A question for European users re key handling

5 views
Skip to first unread message

Edward K. Ream

unread,
Feb 5, 2012, 10:17:48 AM2/5/12
to leo-editor
The following question arises from code level considerations while
refactoring Leo's baroque key-handling code. However, this is "user-
level" question, and I'd like your advice.

At present, Leo supports two key-related settings:

@bool swap_mac_keys
@bool enable_alt_ctrl_bindings

As I write this, I see that neither of these settings appear in
leoSettings.leo. I wonder what happened to them? I'll have to put
them back.

When enable_alt_ctrl_bindings is True (recommended) all alt-ctrl keys
are assumed to be valid characters. I believe this is important for
European keyboards. BTW, there is a comment in my myLeoSettings.leo
file that this must be True in order to handle Alt-Ctrl bindings for
Leo's Find Pane...

My question is this: it doesn't seem to make sense to enable these
settings on a per-Leo-file basis. Instead, it would seem much more
sensible to enable them from the command line, so that all files *at a
particular location* would treat keystrokes in the same way. Do you
agree?

Turning these settings into command-line options would have
"technical" benefits. KeyStroke objects would not need to the know
the environment (commander) in which they are operating.

Your thoughts, please, amigos.

Edward

Ville M. Vainio

unread,
Feb 5, 2012, 12:52:09 PM2/5/12
to leo-e...@googlegroups.com

It should be global setting. Command line argument doesn't make sense, no other program in the world requires command line switch to work with european keyboards.

If find pane is the only thing that requires this, perhaps it's good to fix find pane to use other shortcuts (or disable the shortcuts, are they really needed that often?)

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

Viktor Ransmayr

unread,
Feb 5, 2012, 1:35:19 PM2/5/12
to leo-editor
On 5 Feb., 18:52, "Ville M. Vainio" <vivai...@gmail.com> wrote:
> It should be global setting. Command line argument doesn't make sense, no
> other program in the world requires command line switch to work with
> european keyboards.
>
I fully agree with Ville. - In order to make Leo as easy as possible
to start
with for *many* users on *multiple* platforms this should not be a
command
line argument.

With kind regards,

Viktor

Edward K. Ream

unread,
Feb 9, 2012, 8:29:17 AM2/9/12
to leo-e...@googlegroups.com

Thanks Ville & Viktor for your comments. They seem reasonable. The
question is, how to implement the global setting? I suppose there
could be a special case that sets the global, but only when set in
myLeoSettings.leo.

Edward

Viktor Ransmayr

unread,
Feb 12, 2012, 4:54:25 AM2/12/12
to leo-editor
> On 9 Feb., 14:29, "Edward K. Ream" <edream...@gmail.com> wrote:
> >> It should be global setting. Command line argument doesn't make sense,
> >> no other program in the world requires command line switch to work with
> >> european keyboards.
>
> > I fully agree with Ville. - In order to make Leo as easy as possible to start
> > with for *many* users on *multiple* platforms this should not be a
> > command line argument.
>
> Thanks Ville & Viktor for your comments.  They seem reasonable.  The
> question is, how to implement the global setting?  I suppose there
> could be a special case that sets the global, but only when set in
> myLeoSettings.leo.

I do not have a strong opinion yet. - I think we should try to answer
this
question, once the Leo startup & configuration cleanup has been
settled and implemented. - See:

http://groups.google.com/group/leo-editor/browse_thread/thread/7dd4cdc374fd3d5f

With kind regards,

Viktor

Edward K. Ream

unread,
Feb 12, 2012, 6:53:44 AM2/12/12
to leo-e...@googlegroups.com
On Sun, Feb 12, 2012 at 3:54 AM, Viktor Ransmayr
<viktor....@gmail.com> wrote:

> I do not have a strong opinion yet. - I think we should try to answer
> this question, once the Leo startup & configuration cleanup has been
> settled and implemented.

I agree.

Edward

Reply all
Reply to author
Forward
0 new messages