About Monkey 2 › Forums › Monkey 2 Projects › Ted21 progress
This topic contains 85 replies, has 22 voices, and was last updated by
AdamStrange
2 years, 7 months ago.
-
AuthorPosts
-
July 24, 2016 at 12:45 pm #2392
hiding thing is the easy bit – making them do it in the first place is the hard thing
Just got the initial code for ‘code description’ finished. When integrated it will show all the base parts of any opened code (functions, method, classes, fields, etc) and allow direct jumping to the line when clicked.
One thing I haven’t seen other editors do is also highlight where about you are in the code (in the code description) as you move around. So you should always have a solid reminder of where you are in the code at any time.
All of the code graphics already exist from the help system view. so everything will bee seamless.
Attachments:
July 25, 2016 at 10:11 am #2424Just been using ted21 for real and not just testing. One thing is the next ‘show tabs’ as a glyph is amazing.
I have been using Mollusk to code the monkey2 files and knew there was something screws going on with the tabs, but loading the edited file now shows exactly where tabs are missing and allows me to correct them.
It also (to me) makes code infinitely readable, with everything lining up with the tabs correctly. it makes checking starts and ends of code very easy and also helps see if your code is not conforming and possible has an underlying (missing end, etc) error.
Here is the code being worked on with the corrected code on the top (with the tabs) and the ‘wrong’ code below it:
Attachments:
July 25, 2016 at 3:19 pm #2441you should include the option to show all invisibles… especially
newline (sometimes shown with the paragraph symbol, or an 90 degree down arrow)space (usually shown with the centered dot symbol)
and of course tab… IMO, the symbol you choose here is a little bit too overbearing. often this is shown with a continuous thin up/down line without the perpendicular arm.
July 25, 2016 at 4:01 pm #2442hate to say not much about Mx2 has me excited, but I am really starting to like the look of this IDE which is a really good thing. nice work.
July 26, 2016 at 7:01 am #2459Visible Newline added and tab tweeted a bit
space not supported
best news is that the initial code jumping is functional. It works and will always jump so the line is shown onscreen and not the bottom line of text.
Here you can see the entire editor with the tabs and new line being shown plus the code view and a field jumped to.
The code view shows everything sequential as they appear in the code. I am working on hiding and showing (vars, properties, functions, etc) so you get a clean overview of the way you want to look at code.
You can also see the new status bar. showing its default state. This changes color and shows debugging, compiling information (no dialogs)
You can also see the debug icons next to the line numbers. just click to activate a debugstop
Attachments:
July 26, 2016 at 8:47 am #2461AdamStrange:
I think the Code Browser would look better if everything
inside a Class/Struct/Interface/etc. is indented within
the Code Browser.
Later maybe with toggle-arrow, so we are able to show/hide
the internals of a Class/Struct/Interf…Nice work so far, thanks!
BTW: What does the ’21’ in ‘Ted21’ stand for?
July 26, 2016 at 9:22 am #2462well 21 cause it’s ted2+1, but maybe it’s ted all grown up?
yep I’de thought of indenting, but i’m concentrating on getting the basics all functioning first. Indenting needs tracking of keywords
July 26, 2016 at 1:08 pm #2466if you do indent you should have the amount of spacing as an option or just keep it small. otherwise stuff like that tends to eat up so much screen real estate for just small gains I think.
July 27, 2016 at 5:49 am #2473Yep I would have thought small.
Good news is the code browser is now fully functioning and tracks as you type – wasn’t quite as simple as I first thought.
tab indenting or blocks and un-indenting is also now supported
I’ve also added #- which adds a horizontal line to the editor. it is ignored by the compiler, so doesn’t do anything apart from add a visual cue to the editor
Also I’ve added extra color highlighting for keywords which the code editor uses (Method, Property, Filed, Class etc) These are coloured in the color the code view and property view uses – again tying everything together
Attachments:
July 27, 2016 at 6:45 am #2475Is those ted improvements on github already? Is it functional/usable? I’m looking forward to see this running.
Code folding and (fully auto)indent by fold+else/elseif+select/case are top features for me.
July 27, 2016 at 2:07 pm #2481nope, nothing on github yet. I’m still trying to get it all functioning on that side.
Code folding not currently on the list due to complexity implementing it. maybe later though?
OK. Small update image icons now in the code view and clickable. I’ve also added some grey text to the code view so there is both a visible and text information about each entry. The grey text is right aligned but will slide if there is not enough room. You can see this in the scanCodeToRawKey entry near the bottom.
entries are currently not hidden, but i’m getting there ;0
Attachments:
July 28, 2016 at 10:44 am #2495finished and it all works!
Basically code view is fully functioning, with 4 options to show/hide methods, functions, properties and fields
Here is a quick (double) shot of it in operation with the modules/mojo/input/keyboard.monkey file
On the left is the code view showing everything, and on the right with methods hidden.
You can also see the icons with their grey text and if you look at the actual code itself you can just see the new matching colors.
If you look very closely at line 1 in both shots you can just see new current line highlighting. This is similar to the way visual studio displays the current line with a darker background with lighter top and bottom border
Attachments:
July 30, 2016 at 9:19 am #2542Extended the code view to include lambdas as well as reverse lookup for their callers
the code view options are now saved to the config file, so it remembers when you next start it
Minor fixes to multi-line tab indent/undent
view/hide console added to panel menu, plus activate on ctrl/cmd + esc and not esc (which i thought was always a bit dumb as the console kept appearing and disappearing when escaping out of dialogs)
console auto hides when not viewing text. so it hides when viewing an image and reappears when viewing code.
Attachments:
July 31, 2016 at 6:45 am #2565minor, but super useful addition:
Menu bar extended to be a button/tool bar!!!!
Next up will be to integrate a new find…
Attachments:
July 31, 2016 at 9:52 am #2574Something great (but dirty)… Indented code view
This actually works by tracking the leading tabs and spaces, so it is very quick but only as accurate as your code! So if you don’t like to indent, or use wrong indenting, then you will get some interesting results. Of course this is actually a good thing as you can quickly see where code is not correctly formatted!
Attachments:
-
AuthorPosts
You must be logged in to reply to this topic.








