fwmechanic / k_edit

K Editor for Win32 and Linux
GNU General Public License v3.0
11 stars 0 forks source link

integrate disparate file-extension and -type-specific config sources #2

Open fwmechanic opened 9 years ago

fwmechanic commented 9 years ago

The .krsrc file basically has .ini-file structure, with sections per file extension.

Lately I've added detection of file-type (for highlight-engine enabling purposes, primarily) based upon file content (shebang: first line content analysis).

There is also extension-specific config (again mostly pertaining to display: colors) read from k.filesettings.

These are 3 independent systems, which really should be merged.

fwmechanic commented 9 years ago

20150314: added ftype switch to .krsrc file, plugged existing Lua k.filesettings and ad-hoc file-content-ftype deduction facilities into it.