Mario D <egalua <at> gmail.com> writes:

> What I can't get used to is what happens when I am inside a (big) formula.
Namely, if I use ctrl+arrow I go to to the end (or beginning, depending the
arrow) of the formula, which is the same that I get using the Home/End keys.
On the contrary, with ctrl+arrow I would like to be driven to the
end/beginning of current logical element, that is the same place where the
cursor would be if I hit shift+arrow.

Mario,

I use the cua bind file, and when inside a formula I get the following behavior:
  * unmodified arrow moves one character/symbol;
  * control-arrow or home/end jumps to the start/end of the current inset
(fraction, root, bracketed expression, ...).

I think the key issue is that LyX understands insets (or perhaps I should
call them subenvironments?) -- things that are argument to LaTeX functions.
So if you create a fraction, which translates to \frac{#1}{#2} with the
arguments substituted, LyX knows what constitutes the numerator and what
constitutes the denominator. I don't think LyX will parse "y = x + 2z" and
recognize "x" as an addend, "2z" as an addend, etc., because there's no need
to do so in order to translate to LaTeX (nor does LaTeX do that sort of
parsing, AFAIK).

So I very much doubt, barring a major change to the code, that you can do
better than what it currently does.

Paul


Reply via email to