About Monkey 2 › Forums › Monkey 2 Projects › Ted21 github update
This topic contains 41 replies, has 6 voices, and was last updated by
AdamStrange
2 years, 8 months ago.
-
AuthorPosts
-
August 3, 2016 at 6:39 am #2697
Is it with the dotted lines on/off option ?
August 3, 2016 at 7:01 am #2698currently there are no options – they are in the code, but there is no preferences yet. I’m working on a way to show everything is a clear way
August 3, 2016 at 7:06 am #2699Or Just a toggle button in the menu or topbar like you did with the Color View.
August 3, 2016 at 10:05 am #2706gitgub updated with new show tabs and big cursor in menu with hotkeys
Attachments:
August 3, 2016 at 10:41 am #2709thanks its working.
going to work with it right now.
In many other programs CMD+B is for building I don’t know if that new shortcut is a wise choice.
August 3, 2016 at 11:04 am #2713the default for build is F5 and F6 – this comes from ted2 but I can change it?
August 3, 2016 at 11:13 am #2714I don’t care very much, but doctorwhoof is someone that want’s it.
https://github.com/blitz-research/monkey2/issues/40Maybe in the future you can tackle all those personal things inside one json file, and let the user define them.
For example if people create a project and add a ted2.json file and ted2 use that file.
August 3, 2016 at 11:30 am #2716Ted21 is very OS X aware and will use the OS X Command key instead of Ctrl key.
But I can certainly add Ctrl+b for debug build
August 3, 2016 at 12:56 pm #2720I saw that TED has hardcoded keyconfigurations.
Perhaps it might be a good idea to introduce a shortcut manager so these configurations can be loaded from a JSON (or XML) file, parsed, and assigned during startup of the application.
Well, this is just a suggestion, nothing formal yet.
Monkey123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123#Import "<mojo>"Using std..Class ShortcutField Name:StringField Shortcut:StringField HotKey:String '< -- This is will be a Key not a StringField HotKeyModifier:String '<-- This is alsoMethod SetCommand(command:String)If CommandIsValid(command)Name = commandEndEndMethod SetShortcut(shortcut:String)Shortcut = shortcutFindHotKey()FindModifier()EndMethod CommandIsValid:Bool(command:String)If command = "Find" Return TrueIf command = "Debug" Return TrueIf command = "Test" Return TrueReturn FalseEndMethod FindHotKey()If Shortcut.Contains("+")Local s := Shortcut.Split("+")HotKey = s[s.Length - 1]ReturnEndHotKey = ShortcutEndMethod FindModifier()If Shortcut.Contains("Ctrl")HotKeyModifier = "Modifier.Control"EndIf Shortcut.Contains("Alt")Local hasPrev := ""If HotKeyModifier > 0 hasPrev = "|"HotKeyModifier += hasPrev + "Modifier.Alt"EndEndEndClass ShortcutManagerField ShortcutList:List<Shortcut>Method LoadFromFile()ShortcutList = New List<Shortcut>' file is opened and in each line a new shortcut is added to the listLocal s:Shortcut' e.g.s = New Shortcuts.SetCommand("Find")s.SetShortcut("Ctrl+F")ShortcutList.AddLast(s)s = New Shortcuts.SetCommand("Debug")s.SetShortcut("F5")ShortcutList.AddLast(s)s = New Shortcuts.SetCommand("Test")s.SetShortcut("Ctrl+Alt+Del")ShortcutList.AddLast(s)EndMethod GetHotKey:String(action:String)For Local s := Eachin ShortcutListIf s.Name = actionReturn s.HotKeyEndNextReturn ""EndMethod GetHotkeyModifier:String(action:String)For Local s := Eachin ShortcutListIf s.Name = actionReturn s.HotKeyModifierEndNextReturn ""EndEndFunction Main()' The shortcut manager is createdLocal shotcutManager := New ShortcutManagershotcutManager.LoadFromFile()' Testing the outputPrint("Testing Commands")Local commands := New String[] ("Find", "Debug", "Test")For Local c := Eachin commandsPrint(c)Print(shotcutManager.GetHotKey(c))Print(shotcutManager.GetHotkeyModifier(c))Print("")Next' Example of implementing this in Ted' at the moment of where the actions are declared'_editFind=New Action("Find")'_editFind.HotKey=shotcutManager.GetHotKey("Find")'_editFind.HotKeyModifiers=shotcutManager.GetHotkeyModifier("Find")'_editFind.Triggered=OnEditFindEndAugust 3, 2016 at 1:20 pm #2722mmm, In concept yes. I practice I will get to it in time
August 5, 2016 at 7:59 am #2779Github updated
new right code overview added with mouse support
project refresh added
help system now in main page with updated style
cursor and invisibles added to find menu
some crash fixes
Attachments:
August 9, 2016 at 12:58 pm #2901new update
amended mx2cc to support parsing
new help system with F1 support, index, etc
new ttf font viewer
fixes
escape now closes menus if they are open and closes main help panel if open. so escape is really an uber close/back Which makes much more sense.
larger fonts throughout with proper monospaced font in code view
you will need to rebuild mx2cc first
Let me know how it all goes for you
August 10, 2016 at 6:07 pm #2925Very good work. I like to use ted21. Just a question: how can we change the font in the text editor?
Regards,
jihem
August 11, 2016 at 5:14 am #2930not yet, but it’s coming
August 11, 2016 at 9:52 am #2931Github updated with important code view fixes that prevent some immediate crashes
If you have any issues please let me know
-
AuthorPosts
You must be logged in to reply to this topic.

