About Monkey 2 › Forums › Monkey 2 Development › few small ted2 bugs.
This topic contains 22 replies, has 7 voices, and was last updated by
nerobot 2 years, 5 months ago.
-
AuthorPosts
-
November 4, 2016 at 12:50 am #4761
Bugs:
- pressing Tab on multiline selection, doesn’t indent the last line in the selection.
- shift + tab doesn’t un-indent single line selection
Tweak Suggestion:
When pasting code, could ted2 try and normalise the indentation. So for example if I have this
Monkey123For Local blah := 0 Until 10Print blahNextIf I were to copy this block of code and paste it somewhere else I may end up with something like:
Monkey12345678Function Test:Void()'some stuff was here before pastingLocal winner := 123For Local blah := 0 Until 10Print blahNextEndCould ted2 look at the indentation of the nearest sibling line of code (based on where the cursor is), and then place the pasted block at the same indentation as this? It should trim the leading tabs on the pasted text. We would end up with:
Monkey12345678Function Test:Void()'some stuff was here before pastingLocal winner := 123For Local blah := 0 Until 10Print blahNextEndNovember 4, 2016 at 4:45 am #4762pressing Tab on multiline selection
I had talked to Mark about it and mentioned that it’s purposefully designed that way. Meaning that only selected lines could be indented.
November 4, 2016 at 12:38 pm #4772Ah I see, hopefully its open for convincing?
Well this seems like a bug to me, in that every times it happens I get the urge to leave a bug report. It can be ignored, but after a few weeks now, it still seems like a fault instead of a feature. I spend the majority of my time in Windows and 95% of text editors/IDE’s I have used, tab all lines selected. So I guess that makes this particular feature seem very alien.
Is this perhaps something that can be added to an “advanced” settings dialog? It seems like one of those things that is highly related to users personal preference, instead of something that should be hard coded into the design.
November 5, 2016 at 4:57 pm #4788My fork Ted2Go has normally Tab behaviour. Also “insert with current indentation” is in todo.
Also my version has code parser that brings us autocompletion – not ideal but already very helpful.
Preferences dialog I also keep in mind and plan to do after other things. Now we can edit json files with settings to customize app.
Look at Ted2Go in Projects section.
November 5, 2016 at 6:22 pm #4791pressing Tab on multiline selection, doesn’t indent the last line in the selection.
Will fix this in TextView. Just checked and notepad++ does it and that’s what I’m using as a guide for ‘normal’ editor behaviour these days.
November 5, 2016 at 11:00 pm #4794Awesome Mark. Notepad++ is a good baseline to go from!
Nerobot, I will give ted2go a try!
November 5, 2016 at 11:44 pm #4795@Mark Sibly Maybe you could fix CTRL+LEFT/RIGHT as well? It doesn’t seem to snap to the borders of words properly.
November 6, 2016 at 3:39 am #4799I like those suggestions! The only thing keeping me away from Ted2 now is the text editing itself.
I’d add (on a mac) Cmd+Left/Right for beginning and end of line on a compact laptop keyboard. A shortcut to comment/uncomment lines (usually cmd+/ on mac editors) would be great too.Thanks!
November 6, 2016 at 10:12 am #4802shortcut to comment/uncomment lines
Ted2go has it. Shortcut Ctrl+’ or button on editor bar.
Ctrl+Left/Right – usually it moves cursor to near word, with checking of camelCase. Easy to implement but isn’t important for me. Will be added later.
November 6, 2016 at 5:36 pm #4818I was just checking Ted2Go a couple nights ago, really cool! Is Mark gonna merge some of those features?
I don’t see the option to toggle comments, though, and the shortcut doesn’t do anything here.
Those keyboard navigation shortcuts like ctrl+arrows and cmd+arrows are super important to me, I hate moving my hands off the keyboard just to position the mouse cursor!
November 7, 2016 at 3:45 am #4842- Oh. Changes were in dev branch only. I just pushed them into master. Please try it.
- Mark take part in development of ted2go, so let’s see what happens with original ted2.
- Does that laptop has Home/End buttons? Or you use cmd+left/right as alternative for home/end?
November 7, 2016 at 6:46 am #4844On a MacBook Pro, beginning/end of line are Cmd+Left and Cmd+Right.
Top and bottom of a document are Cmd+Up and Cmd+Down.
Next/previous words are Ctrl+Left and Ctrl+right, as mentioned. As far as I know Ctrl+Up and Ctrl+Down are reserved for the OS (Mission Control and Exposé).
All of those should work with “Shift” for selection, so holding Shift while hitting Ctrl+Right will select the next word, then the next, and so on.
Don’t know what’s the equivalent in Windows, which must exist since some Windows laptops also have compact keyboards.
Will try Ted2Go again, Thanks!
November 7, 2016 at 6:50 am #4845Thanks for explanation.
So it’s very easy to implement and will be done soon.
November 12, 2016 at 6:35 am #4970One bug I keep encountering is that on lower resolution(hd) screen the Ted window is bigger then the screen. I need to run/compile before it switches to right proportions. On full hd this is not a problem.
November 12, 2016 at 8:02 am #4971I got the same problem on my notebook.
So I fixed that in ted2go – not pushed in repo yet, but soon.
-
AuthorPosts
You must be logged in to reply to this topic.