few small ted2 bugs.

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.

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #4761

    skn3
    Participant

    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

    If I were to copy this block of code and paste it somewhere else I may end up with something like:

    Could 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:

    #4762

    cocon
    Participant

    pressing 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.

    #4772

    skn3
    Participant

    Ah 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.

    #4788

    nerobot
    Participant

    My 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. 🙂

    #4791

    Mark Sibly
    Keymaster

    pressing 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.

    #4794

    skn3
    Participant

    Awesome Mark. Notepad++ is a good baseline to go from!

    Nerobot, I will give ted2go a try!

    #4795

    ImmutableOctet
    Participant

    @Mark Sibly Maybe you could fix CTRL+LEFT/RIGHT as well? It doesn’t seem to snap to the borders of words properly.

    #4799

    Ethernaut
    Participant

    I 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!

    #4802

    nerobot
    Participant

    shortcut 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.

    #4818

    Ethernaut
    Participant

    I 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! 😀

    #4842

    nerobot
    Participant
    1. Oh. Changes were in dev branch only. I just pushed them into master. Please try it.
    2. Mark take part in development of ted2go, so let’s see what happens with original ted2.
    3. Does that laptop has Home/End buttons? Or you use cmd+left/right as alternative for home/end?
    #4844

    Ethernaut
    Participant

    On 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!

    #4845

    nerobot
    Participant

    Thanks for explanation.

    So it’s very easy to implement and will be done soon.

    #4970

    Pakz
    Participant

    One 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.

    #4971

    nerobot
    Participant

    I got the same problem on my notebook.

    So I fixed that in ted2go – not pushed in repo yet, but soon.

Viewing 15 posts - 1 through 15 (of 23 total)

You must be logged in to reply to this topic.