Skip to content

add support for FreeDesktop config file #4299

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

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open

Conversation

gg582
Copy link

@gg582 gg582 commented Jul 28, 2025

Changes

  • Add XDG Desktop Shortcut's syntax highlighting

@gg582 gg582 changed the title add XDG Desktop shortcut file highlighter add support for XDG Desktop shortcut file Jul 28, 2025
@gg582
Copy link
Author

gg582 commented Jul 29, 2025

You can see the example at the end of this post.
Highlight JS Custom Highlighter

@gg582
Copy link
Author

gg582 commented Jul 29, 2025

https://chi-blog-seven.vercel.app/posts/systemd-making-a-blog-server-as-a-daemon

Here's an example for *.service support.

@gg582 gg582 changed the title add support for XDG Desktop shortcut file add support for XDG/Systemd config file Jul 30, 2025
@gg582
Copy link
Author

gg582 commented Jul 30, 2025

This should support similar files as a whole.
So, I will add it as a Systemd syntax.

@gg582
Copy link
Author

gg582 commented Jul 30, 2025

@gg582
Copy link
Author

gg582 commented Aug 2, 2025

Latest patch: Freedesktop formats do not use ; as a delimiter.

@gg582 gg582 changed the title add support for XDG/Systemd config file add support for FreeDesktop config file Aug 2, 2025
@gg582
Copy link
Author

gg582 commented Aug 2, 2025

So the basic principal of the highlighting is to support FreeDesktop related config files

@gg582
Copy link
Author

gg582 commented Aug 2, 2025

Currently Supported Formats

  • NetworkManager Configuration
  • Systemd Units
    • Service Units
    • Mount Units
    • Socket Units
    • Timer Units
  • XDG Desktop Shortcuts

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.

2 participants