On Sun, Oct 24, 2021 at 9:21 PM Phil <[email protected]> wrote:

> There appears to be some slight change in behavior of Tab, Shift-Tab and
> Ctrl-{up-arrow} and Ctrl-{down-arrow} from previous versions, with
> respected to highlighted text and the location of the cursor.
>
> *Regarding Tab and Shift-Tab:*
> With the cursor at the beginning of a line, use Shift-{down-arrow} to
> highlight the line, then use Tab to tab the line to the right. The result
> is the single highlighted line tabbing right, and the cursor moving to the
> end of the line. Now Shift-Tab, and the line moves back left, but the
> cursor remains at the end of the line. The cursor re-position seems
> inconsistent - but that's not the main issue... This does seem different
> from previous versions of Leo though - because the line following the
> highlighted lines would also get tabbed.
>
> *Now adding Ctrl-{up/down-arrow}:*
> With the cursor at the beginning of a line, use Shift-{down-arrow} to
> highlight the line. Then use Ctrl-{up-or-down-arrow}. The highlighted line
> moves up/down respectively, *but so does the line below the highlighted
> line! *This also holds true for Shift-{up-arrow} to highlight the line
> above the current cursor position.
>
> None of this is terrible. It seems somewhat inconsistent and illogical
> though. It used to be that Tab and Ctrl-{up-or-down-arrow} would also
> affect the following un-highlighted line - which I thought odd, but I got
> used to it. I'm not advocating a return to the old behavior necessarily,
> but I think it would make sense that these two actions would behave
> similarly with selected text.
>

Thanks for this report. This new behavior is likely the result of #1731
<https://github.com/leo-editor/leo-editor/issues/1731>, with PR #1732
<https://github.com/leo-editor/leo-editor/pull/1732>.

Iirc, the changes were tricky and subtly affected key bindings.

Feel free to file an issue, but only if you really care :-)

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1TqhrrEXgL%3D5mRP%2BDxK1TBD5mR7GeHjki2COLCUWtTQA%40mail.gmail.com.

Reply via email to