Tested for a while. Looks like it works as I wanted, but you still have some misbehaviors: 1. when inserting TAB char - then cannot undo it (ctrl-z does nothing) 2. when single line is selected and ctrl-> or tab is pressed - two lines are indented (this is very old bug, I told you about it and even now do not understand why do you treat this as valid behavior) 3. when indenting a single line - cursor is moved to the beginning of it, which is uncommon (same with multiline indent) 4. seems like auto-indent after braces doesnt work anymore (but I'm not sure that it was not broken before)
ср, 18 нояб. 2020 г. в 13:02, Edward K. Ream <[email protected]>: > > 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 > <https://groups.google.com/d/msgid/leo-editor/CAMF8tS1cRhcmpkeY5aM2-xsHY%2Bf-aRA0KvShXChf1rgXM3AbNQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/CAC%2B8SVxMEmSP4Qdt_u9JFMJ4QefQwcptq-81fmrpKHCx18vLsw%40mail.gmail.com.
