micro-editor / micro-editor/micro
[FR] Linux config files predefined filetypes
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 29.6k
- Forks
- 1.4k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 10
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the existing all-users configuration handling and the proposed config-filetypes.json alongside ~/.config/micro/settings.json. Use the listed Linux paths and patterns as the initial cases, then verify that the completed configuration maps them to the intended filetypes without changing unrelated settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- cli, operating-systems
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100