-
Notifications
You must be signed in to change notification settings - Fork 57
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
UI TextMate Preferences #32
Comments
This seems totally good. However, I have a few suggestions:
|
@mickaelistria I have started to work on preferences page. For the moment it's basic. It provides list of grammars and list of themes. Here the result: Please note it's not finished! At this step we have:
It's just some ideas, any feedback are welcome! |
This look good so far. |
Few things I don't see mentioned for the themes :
|
This logis is already done with extension point (it should be done no by preferences too). By default it uses TextMate SolarizedLight theme https://github.com/eclipse/tm4e/blob/master/org.eclipse.tm4e.ui/plugin.xml#L38 and if you switch to E4 dark theme it uses TextMate Dark theme https://github.com/eclipse/tm4e/blob/master/org.eclipse.tm4e.ui/plugin.xml#L44 If you switch to E4 dark theme, your editor should use TextMate Dark theme, no? |
Thanks!
Using preferences means that user will have the capability to define grammar and after link this grammar to a content type. But my main problem is It seems that in Oxygen it is possible. After that I need to choose an editor which supports TMPresentationReconciler. To do that there are 2 options:
As you see, there are so many questions to define custom binding between grammar and custom content type and editor. I would like in the first step display information of grammar, themes in the preferences. But if you can help me to find solution to bind a grammar with a custom content type without extension point, any idea are welcome! |
To be honest, for the use-cases I've worked on or I have in mind, I don't care about Neon and wouldn't use a dedicated TMEditor as TM isn't enough to make useful editors; it's only a way to provide a part of it. |
#32 Signed-off-by: angelozerr <[email protected]>
Thanks @mickaelistria for your answer. I will study your comment and give you feedback. I have do a big refactoring to associate theme. Now you can associate theme with E4 Theme and scope name too. I have displayed that in the Grammar preferences. Here a demo with preview: @akurtakov I will implement preview too in Theme preferences #91, but you can for the moment play with preview in the Grammar preferences. It misses "injections" information and after it will be finished. Next step is to persist thoses preferences. I tell me too if we should provide "snippet" extension to fill the preview textfield when a language is selected. @mickaelistria what do you think? See #93 Any feedback are welcome! |
I close this issue. For User preferences see #94 |
eclipse-tm4e#32 Signed-off-by: angelozerr <[email protected]>
It should be cool to provide a global TextMate preferences with those preferences pages:
TextMate
Editor
: this page display a table which show links between content type and TextMate grammar. Those links comes from:Grammar
: this page display a table which show regsitered grammars:Theme
: this page display a table which show regsitered themes (CSS and TextMate themes):@mickaelistria what do you think about this idea? Do you like preference page names?
The text was updated successfully, but these errors were encountered: