[Ted] Added feature to re open files.

About Monkey 2 Forums Monkey 2 Development [Ted] Added feature to re open files.

This topic contains 1 reply, has 1 voice, and was last updated by  cocon 2 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2269

    cocon
    Participant

    I really like using Sublime for complex editing, but also I prefer compiling with IDEs, in this case Ted. It’s a matter of getting more informative reporting and debugging features when correcting the code.

    While saving a file with Ted, Sublime can auto-load the newer version, how ever Ted does not allow that (yet). This was a common problem with Monkey1, Blitzmax, etc, and I decided to something about it.

    In this case you get the ability to reopen the file immediately “no-questions-asked” in order to get that feeling of semi automatic reloading. As an added convenience, you can use the Ctrl-R shortcut.

    P.S. Perhaps later I might try to replace that with an auto-load feature as well, that will require an event timer run constantly on the background and check the timestamp difference once per second.

     

    How to apply the patch:

    1. Have git in your PC (I use github desktop client because it’s very minimal).
    2. Initialize git for the ted project (drag and drop the folder to github client).
      …\monkey2\src\ted2
    3. Do the first commit for backup purposes.
    4. Check info about how to apply the patch:
      https://git-scm.com/docs/git-apply
      https://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/
    5. Now open …\monkey2\src\ted2\ted2.monkey2 and build a release version.
    6. The project is compiled here (the operating system naming varies):
      …\monkey2\src\ted2\ted2.buildv1.0.0\desktop_release_windows
    7. Copy only the ted2.exe to this location …\monkey2\bin\ted2_windows. Perhaps you might want to backup the original ted2 exe just to keep you head clear (give it a name like ted2backup, so you won’t replace anything).
    8. Now you can start Monkey as you normally would
      …\monkey2\Monkey2 (Windows).exe

     

    #2270

    cocon
    Participant

    If you are in a hurry get this file:
    https://1drv.ms/u/s!AquVr9J7xRcsgWnlSlXH8i6-b_lV

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.