Forum Replies Created
-
AuthorPosts
-
Thanks for an explanation. Seems like a very specific thing. Maybe when my todo became empty…
Current autocompletion list based on Dialog class, so it seems a bit massive (I didn’t know another way when implement it). So I plan to do completion list to look a lightweight. And need to fix Y-position (shown above than it should).
About keyhit.
As I know, keyhit usually return hits count since the beginning of main loop.
Also, Hit = Press + Release. (or only pressed but don’t increased until released)
So if we are not releasing key it should return 1 (or true) at a loop frame key was pressed. And than will flushed at next frame and will return 0 or false until we release and press again.
Upd. For gui apps we have OnKeyEvent() with full control of event, including its type that can be KeyRepeat.
1. You can deprecate Cast <> or mark it as deprecated (Need to somehow leave ‘cast’ keyword in help to do search of it).
2. In docs for As / Is you explain what is under the hood.
3. This is not absolute necessary but more basic-style IMO.
See properties SuperType and InterfaceTypes of TypeInfo class.
- StaticIf looking good.
- To managing ‘usual’ directives for #if – I think a simple way is to use project-file.
A project file
- Json format to be easy to use.
- A minimal project file will contains a ‘root’ monkey2 file which will compile, that we are ‘locking’ now.
- Additional info like a list of preprocessor directives will be placed here too.
- We need to pass a project file to compiler, not a single (locked) file, so compiler will know about all directives before it started its work.
But need to add “Set As Active Project” functional into IDE, I can do it.
And maybe as a way – combine new project data with existing products.json.
What about using KeyReleased?
The difference (not your nickname:) ) is: in mx2 vec2f is a struct but it is a class in mx1. struct is copied when assign it to var.
If you define vector as a class in mx2 it will be changed by the way you shown above.
Looking nice.:)
New stuff:
- Autocomplete – smart ident checking: by case and length, and by searching of ident parts. (see ted2go_new_complete.png) [*]
- New – added Preferences dialog to manage autocomplete state, show/hide toolbars and gutter. Stored in ted2.state.json. (see screenshot) [**]
- Improve – when delete \n in current line then also delete indent of the next line. This eliminates the need of deleting a few tabs from bottom (next) line.
- Improve – append additional indent on new line if pressed Enter on line with ‘method’,’for’, etc.
- Improve – types parsing (:=True, ‘Ptr’ and some other).
- Improve – attempt to implement EnsureVisible for current document when open it. Worked fine for opened docs only. [***]
[*] – now, there is letter-by-letter checking with distance 3 chars. So, if we have ‘similar’ methods like Destroy() and OnDestroy() and typed ‘des’ we will see both these methods in autocompletion list.
[**] – now we can choose – what key to use with completion list: Tab or/and Enter.
[***] – because we need to wait layout before we can show the doc (else doc’s tab size is zero), but have no callback for that. And OnLayout is fired continuously even on app idle, is it OK?
Attachments:
I understood you, but I don’t want to rearrange modules (don’t have any releasable project in dev).
I hope that Mark do it himself sometime.
This time Ted2go’s parser is based on mx2cc. When (and if) I will add an additional parsing of local scopes and add foldings.. then we can get this. Folding in editor and in code tree.. dreams
Maybe via comment like this:
‘#region
‘#end
Hm, interesting. This is a good news.:) Especially if Mark do it the same way.
I tried to use ‘using std.collections’ but this had no result for sizing.
Then I tried to import ‘sub’-module like #import <std.collections> but this is incorrect / unsupported way.
Then I tried to import by absolute path (%path_to_modules%/std/collections.monkey2) – just for test, but absolute path didn’t work that time.
And I postponed my attempt until better times.
+1.
Also I’m intresting in – is there way to reduce .so lib size.
-
AuthorPosts

