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 · 0 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?

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

1 participant