Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMEdit

A high-end code editor for all things GameMaker · By YellowAfterlife

Split Views for side-to-side coding

A topic by feliperyba created Jun 12, 2018 Views: 355 Replies: 4
Viewing posts 1 to 4

Hi, first of all thanks for the amazing editor!

Second, I was doing some search on ace editor split views and I was wondering if GMEdit could support that ??
Would be an awesome feature to have.

Developer

Same-document split view or having different documents in each view?

Cause the later would require rewriting how tabs are handled (currently it's single-editor because that cost much less in development time)

Different documents in each view.

I've found those links :
http://jsfiddle.net/igos/qLAvN/
https://codepen.io/Aghaie/pen/OjLzNz
https://ace.c9.io/demo/scrollable-page.html

You think this might be the way ? I'll try to do it, if works I can do a pull request

Developer

Splitter code can be ripped out of the "kitchen sink" demo, it's relatively small. As I have said, the primary issue would be in modifying the tabbed UI to support either multiple tab sets or dynamically switch active tabs as editors gain/loose focus. Not sure how this would be made to look remotely elegant.

If you have time to experiment with this, feel free to. The current head revision has editors abstracted away into editors.* package instead of Ace sessions being tied to tabs, which might help something.

I saw this example first, but I thought that would be a different code to support multiple dynamic editors since was just duplicating at first...
Those are showing multiple dynamics windows at a time, even adding then on the fly.

But thanks, I'll try something in the middle time.