On Wed, Nov 18, 2020 at 2:47 AM gar <[email protected]> wrote:

What do you mean by "the current fix w/o special handling of tabs"?
>>
>

> I merged your commits where any 'tab' causes the whole line indentation -
> and I love this behavior
>
>
>> In any case, *something* has to be done so that tabs can be inserted in
>> lines :-)
>>
>

> For me (and this is my private opinion) it'll be enough to have another
> command - `indent-line` - which I''l be able to bind to say 'ctrl >'
> Having this option I wont be worrying about what does 'tab' key actually do
>

The present code does not allow a tab to insert whitespace at the end of a
line. This is jarring for me, and I suspect most users. I have just created
#1739 <https://github.com/leo-editor/leo-editor/issues/1739> for this
issue. The work is in the ekr-indent branch.

The new code inserts a tab if the selection range is empty. Unlike 6.3, it
only does this if the user actually typed a plain tab! PR 1740
<https://github.com/leo-editor/leo-editor/pull/1740> shows the new code.

Therefore, Ctrl-Shift->, *always* indents the line, as you want. Note that
Ctrl-Shift-> is already bound to indent-region, so my guess is that this
should be good enough for you.

Please test the ekr-indent branch and tell me what you think.

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/CAMF8tS1cRhcmpkeY5aM2-xsHY%2Bf-aRA0KvShXChf1rgXM3AbNQ%40mail.gmail.com.

Reply via email to