Playing Nice with Existing Color Schemes (or not) #49
Replies: 5 comments 3 replies
-
I'm not sure I follow you here. ST allows you to select three default color schemes: (1) default, (2) default dark, (3) default light — where the latter two only apply when ST is set to follow the OS dark/light mode. Other than that, you're free to override the default scheme on a per-syntax bases — which is what I was trying to do via the package settings. You can enforce a colour scheme for any given syntax either via the GUI menus or by editing you syntax settings in the User folder.
Point (a) is hardly achievable if we strive to use proper semantics in our package scoping names; whereas (b) is beyond the scope of the package since it would require huge maintenance efforts and testing with syntaxes (just finding decent syntax samples for visual testing is a time consuming task, since most languages don't provide such samples, and there are literally hundreds of languages to keep into account). Unfortunately, the trick of adding
Again, I'm not sure that I understand you correctly here. I do work with multiple syntaxes at once, including those you mentioned, and I use different colour schemes for different group of syntaxes (which also makes it easy for me to distinguish what is what by its canvas color). The Markdown package comes with its own dedicated schemes, so I stick to the light-greyish scheme for MD docs (which I believe is the default scheme which the package enforces, although I'm not sure if I've enabled it manually).
As far as I know, color scheme settings are detached from projects and workspaces: you have the global defaults (by ST, then by the User), and on top of that you have syntax specific settings (by package, then by User) which override the global settings. Projects allow to customize a number of settings: included folders, excluded files, file patterns for indexing or indexing exclusion, ecc. I'm not entirely sure what workspaces are for, but when you create a project ST automatically attaches to it also a workspace file, so surely they are handled in part by ST, automatically, e.g. to store GUI related settings (like window size, open tabs, ecc., probably) — what I do not know is whether the user has some slack in terms of customizing the workspace, but I'm sure the documentation should provide more info on that. I hope it helped. |
Beta Was this translation helpful? Give feedback.
-
Aha! I see the light. I was confused by that cache bug getting in my way. (It mysteriously went away, BTW, and so all of a sudden the syntax-specific settings started working for me. -- Not that I even remembered that ST4 supports syntax-specific settings until you mentioned it just now. I was further confused by the fact that the |
Beta Was this translation helpful? Give feedback.
-
With my clarified understanding, I rewrote If you agree that my understanding is now correct, I'll commit it in a PR toward |
Beta Was this translation helpful? Give feedback.
-
Added as collaborator@polyglot-jones, I've added you as a collaborator, so you'll have more freedom to commit to the repository directly, on your own. I'm not a strong in believer in technical restrictions (e.g. blocking commits on the main branch via branch rules) because I prefer to rely on mutual understanding. As long as we commit our changes to the I'm confident that as we go along we'll find the mutual understanding on where the package is ultimately heading to, benefiting from each other's insights and idea, since every AsciiDoc user has his own peculiar way of using the syntax, and hence his/her own grasp of the different workflows. I wish I had more time to dedicate to this package, but as of lately there have been many major events in my life that have deprived me of the free-time I used to enjoy before. But having seen all the important contributions you've provided so far, I'm confident you know your way through the project — in any case, it's not as if the consequences or "things going wrong" are going to cause real harm to anyone (it's just a package). For this project to succeed, we need to gradually involve more people into it, gain more collaborators. It's really a pity that AsciiDoc still lacks a full-fledged editor syntax, especially since it's been around for decades and it's adopted by a very large user-base. |
Beta Was this translation helpful? Give feedback.
-
I'm honored. I'll refrain from doing anything directly here unless you either tell me to or if you go incommunicado for some reason (and even then it would likely only be in cases where I or another collaborator is being blocked from further progress). |
Beta Was this translation helpful? Give feedback.
-
My biggest issue with ST4 color schemes is that you can only have one selected at a time. So, it seems to me that we should endeavor to (a) make sure that our scope naming plays nice with existing color-schemes, and (b) make sure that any adoc-specific color schemes we come up with do a decent job at colorizing non-adoc syntaxes.
...(a) being important for anyone who really likes his favorite color scheme and only dabbles in adoc work, so doesn't care if the color scheme reflects the adoc nuances; while (b) being important for the person like us who cares more about the adoc nuances and only cares that non-adoc files are colorized "enough".
One particular non-adoc situation that concerns me is the technical writer who has to work with multiple markup languages simultaneously -- switching back and forth between MD, RST, and ADOC day by day (hour by hour? minute by minute?) I'm not saying that we need to actively worry about us playing nice with "rival" markup packages right now, but it's something to keep in mind.
QUESTION: I haven't taken advantage of project/workspace switching in ST much. (I'm not even sure what the difference is between a project and a workspace.) Can you have a different color scheme specified for each project? workspace? If so, then maybe my concerns will go away if we document a standard tactic for doing ADOC work in a separate project/workspace than doing other work?
Beta Was this translation helpful? Give feedback.
All reactions