Skip to content

[FR] Linux config files predefined filetypes #4021

@kuvaldini

Description

@kuvaldini

Description

Many Linux config files in /usr/share/ /etc/ ~/.config/ ~/.* ~/.local/share, etc. have extensions (usually .conf) do not correspond to actual content.

for example my ~/.config/micro/settings.json

{
   "/etc/default/grub": {
      "filetype": "bash"
   },
   "/etc/avahi/avahi-daemon.conf": {
      "filetype": "toml"
   },
   "*.conf": {
      "filetype": "toml"
   },
   "**/avahi/*.service": {
      "filetype": "xml"
   },
   "*.hook":{
      "filetype":"toml"
   },
   "/usr/share/dbus-1/*.conf":{
      "filetype":"xml"
   }
}

and this is far to be complete. Let's add some config-filetypes.json to all-users config for micro. I am pretty sure somebody have better more full list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions