Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a TextMate grammar editor? #96

Open
mickaelistria opened this issue May 2, 2017 · 5 comments
Open

a TextMate grammar editor? #96

mickaelistria opened this issue May 2, 2017 · 5 comments

Comments

@mickaelistria
Copy link
Contributor

mickaelistria commented May 2, 2017

Currently, editing TextMate grammar is a bit of a nightmare ;)
I would be nice if TM4E could provide a rich TextMate grammar editor, with a preview mechanism, using a "split" editor (one side edition, other side preview) or populating the Outline view with a text area showing preview, or adding a new "Preview" view (covered in #97).

@mickaelistria
Copy link
Contributor Author

cc @akurtakov

@angelozerr
Copy link
Contributor

You read in my mind @mickaelistria :)

Yes I would like to provide this kind of editor like PDE editor with Overview, Rules, Source page.

My idea is to develop this editor based on FormEditor to provide nicely UI like PDE and benefit with master details feature (for rule for instance). @mickaelistria what do you think?

For the moment I'm busy with #94 (I'm developping an Import wizard for that, I will ping you as soon as I have something and tell you what you will think about my idea).

@mickaelistria
Copy link
Contributor Author

The only concern I have is that if you're opting for a tab-editor, it's really annoying to switch between edition and preview with tabs. I just think the preview should be in a separate view for best results. And at the moment, I believe the preview would be more valuable for TextMate grammar developers than the editor actually.
Both could be implemented separately. I'm going to open a bug for the preview (in outline or wherever not in the editor).

@mickaelistria mickaelistria changed the title a TextMate grammar editor with preview? a TextMate grammar editor? May 2, 2017
@angelozerr
Copy link
Contributor

angelozerr commented May 4, 2017

I agree with you, preview tab was not in my mind. Preview should be hosted in a View (like JavaDoc view)

My idea was to displays TextMate rules in a list and when you select an item it displays rule content on the right side (like Extension Points PDE tab with master detail feature)

I think we should have a TextMate Perspective which opens several views to provide several views like http://tmtheme-editor.herokuapp.com/#!/editor/theme/Monokai:

  • a Gallery View which display list of theme to select it, update it and create it. I like the 2 tabs (Light/Dark):

image

  • a Scope view:

image

  • a Preview view. I tell me if we need that? I mean we could open a file (ex : *.cs file) with GenericEditor or TMEditor and see the result like:

image

After when you edit theme or grammar and change it, the TMPresentationReconciler could be refresed with new theme content or new grammar syntax.

What do you think about that?

@ainslec
Copy link

ainslec commented May 26, 2017

@mickaelistria

At the risk of plugging my own stuff, I have been developing a web based textmate grammar editor / debugger with stack introspection. You can also export to Ace editor.

http://eeyo.io/iro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants