--
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 leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/191afa5a-95ef-4fc6-82cd-a92fd74d8f0dn%40googlegroups.com.
so to be like all other editors leo should have 2 commands: indent-region and indent-line.
i use your current fix w/o special handling of tabs and I am VERY happy! i vote not to change it.
What do you mean by "the current fix w/o special handling of tabs"?
In any case, something has to be done so that tabs can be inserted in lines :-)
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 behaviorIn 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
--
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 leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS1cRhcmpkeY5aM2-xsHY%2Bf-aRA0KvShXChf1rgXM3AbNQ%40mail.gmail.com.
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)
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)I don't see this.
3. when indenting a single line - cursor is moved to the beginning of it, which is uncommon (same with multiline indent)I don't see exactly this. I do see that after indenting a region the last character isn't selected. This doesn't affect much, but I will correct it.
4. seems like auto-indent after braces doesnt work anymore (but I'm not sure that it was not broken before)Please give an example.
Put your cursor to the beginning of the line (position 0, not the first char). Hold shift, press down - the line is selected. Press tab - next line becomes selected and both of them are indented. What was expected?
Leo does have a match-brackets command, which I have hot-keyed to Ctrl+]. It selects the region between a bracket and its matching one. There is also add-comments/delete-comments, which I find very helpful. goto-next-marked is another one I use often, along with mark/unmark-all.
Put your cursor to the beginning of the line (position 0, not the first char). Hold shift, press down - the line is selected. Press tab - next line becomes selected and both of them are indented. What was expected?Yes, this is expected. All lines with any selection at all are indented.
To get the behavior you want, press Shift-End instead of the Down arrow.\
On Wed, Nov 18, 2020 at 8:45 AM gar <gar...@gmail.com> wrote:Put your cursor to the beginning of the line (position 0, not the first char). Hold shift, press down - the line is selected. Press tab - next line becomes selected and both of them are indented. What was expected?Yes, this is expected. All lines with any selection at all are indented.
To get the behavior you want, press Shift-End instead of the Down arrow.
Edward
match-brackets does work on [], and {} as well. What kind of syntax regards "//" as bracket markers?.
See the constructor for class g.MatchBrackets.
Most other editors I commonly use would act as follows, which is what I would like as well:1. Put cursor at start of a line of text.2. Select the line by pressing <SHIFT-DOWNARROW>.3. Press <TAB>.
I have a huge list of what to investigate (and maybe fix) in Leo's code. It is so huge that I aint even start - wont be able to pay that much time for it :-)
--
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 leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS2kfJxfCgBAn1nk0eD903xfHJ61oc6scuQHfbC3gbpiCA%40mail.gmail.com.
Thanks. I'll try. But I have a barrier - my poor english. Sometimes I just cannt write what I actually mean. So some of my thoughts are going directly to the trash bin.
But thanks.