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

create user.micro merge to each colorscheme without create them under user colorscheme folder #3490

Open
vincentaxhe opened this issue Oct 3, 2024 · 3 comments

Comments

@vincentaxhe
Copy link

vincentaxhe commented Oct 3, 2024

I have implement org highlight with syntax/org.yaml

filetype: org

detect:
    filename: "\\.org$"

rules:
      # headlines
    - headline:  "^\\*+ .*"
    - priority:  "^\\*+ (\\[.+\\] |[A-Z]+ )+"

      # comment
    - comment: "# .*"

      # tables
    - table: "[[:space:]]*\\|.+\\|"

      # bold italic delete underline mono
    - emphasize: "\\*[^ *][^*]*[^ *]\\*"
    - italic: "/[^ ].*[^ ]/"
    - delete: "\\+[^ ].*[^ ]\\+"
    - underline: "_[^ ].*[^ ]_"
    - mono: "[=~][^ =~].*[^ =~][^=~]"

      # lists
    - list: "^([[:space:]]*[+-] |^[[:space:]]*[0-9a-zA-Z]+[).] )(\\[.\\] )?"

      # links
    - link: "\\[(\\[[^]]+\\]){1,2}\\]"

      # urls
    - url: "https?://[^ )>]+"

      # block
    - block:
        start: "^#\\+begin_.*"
        end: "^#\\+end_[^ ]*"
        rules: []
    - block: "^#\\+.*"

and create colorscheme/user.micro

color-link headline "bold #282828,#E6DB74"
color-link priority "#CB4B16,#282828"
color-link table "#66D9EF,#282828"
color-link emphasize "bold #AE81FF,#282828"
color-link italic "#E6DB74,#282828"
color-link mono "#ABE674,#282828"
color-link delete "#505050,#282828"
color-link underline "#BDE6AD,#282828"
color-link list "#F92672,#282828"
color-link link "#CB4B16,#282828"
color-link url "bold #CB4B16,#282828"
color-link block "#C6EF74,#282828"

and copy every buildin colorscheme file to micro user colorscheme folder, then append 'include "user"' to every .micro file. is there a way to avoid create so much duplicated files and merge user.micro to any colorscheme selected, maybe an option?

@usfbih8u
Copy link

usfbih8u commented Jan 6, 2025

is there a way to avoid create so much duplicated files and merge user.micro to any colorscheme selected, maybe an option?

Yes, I made a plugin for myself that does exactly that. Allows you to have a main colorscheme and add a list of includes at the end.
It is a work in progress/hack (colorschemes need a rework in micro) but it works. If you are still interested, I can release it and you can try it.

@vincentaxhe
Copy link
Author

yeah, I want to look into the approach

@usfbih8u
Copy link

usfbih8u commented Jan 8, 2025

yeah, I want to look into the approach

https://github.com/usfbih8u/micro-concat-colorschemes

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

No branches or pull requests

2 participants