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

colorscheme: Add capability to include schemes #2844

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

JoeKar
Copy link
Collaborator

@JoeKar JoeKar commented Jun 14, 2023

I was already wondering, why the default color scheme default.micro file tries to track the same content as the as default defined monokai.micro. This becomes even worse when I had a look into the diff of both files:
grafik

Since this causes duplicated maintenance effort and is error prone I decide to change the approach.
The easiest way would be to use symbolic links, but they aren't supported by the embed.FS, which is most probably the reason for the duplication of the content. With the introduction of the include support in the color schemes the same result can be achieved. Additionally it's still a reduction of space used within the binary, the maintenance effort decreases, already existing schemes can be extended/slightly adapted and the default theme can be changed by changing the name of the included scheme only.

@JoeKar JoeKar force-pushed the feature/colorscheme-include branch from 5dd4b24 to 6f232e5 Compare June 14, 2023 19:05
@dustdfg
Copy link
Contributor

dustdfg commented Nov 30, 2023

Great, I fully support it. It is also can be useful for plugin developer. I have been already thought about custom color scheme but it was just <ctrl+c, ctrl+v, change several lines> so I decided not to add it to the plugin...

@JoeKar JoeKar force-pushed the feature/colorscheme-include branch from 6f232e5 to 03387c2 Compare March 15, 2024 17:36
@JoeKar JoeKar requested a review from dmaluka March 15, 2024 17:50
@JoeKar JoeKar force-pushed the feature/colorscheme-include branch 2 times, most recently from c42520b to 06e1d01 Compare March 17, 2024 19:25
internal/config/colorscheme.go Outdated Show resolved Hide resolved
internal/config/colorscheme.go Outdated Show resolved Hide resolved
@JoeKar JoeKar force-pushed the feature/colorscheme-include branch 3 times, most recently from 7c33eee to 1ff5d8f Compare March 18, 2024 21:00
internal/config/colorscheme.go Outdated Show resolved Hide resolved
internal/config/colorscheme.go Outdated Show resolved Hide resolved
internal/config/colorscheme.go Show resolved Hide resolved
@JoeKar JoeKar force-pushed the feature/colorscheme-include branch from 1ff5d8f to b79f7ad Compare March 19, 2024 21:23
@JoeKar JoeKar force-pushed the feature/colorscheme-include branch from b79f7ad to 8347906 Compare March 20, 2024 18:50
@JoeKar JoeKar merged commit 4895a29 into zyedidia:master Mar 21, 2024
3 checks passed
@JoeKar JoeKar deleted the feature/colorscheme-include branch March 21, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants