From d04c16248da665c9d0ff87abd8fe8a383ce83182 Mon Sep 17 00:00:00 2001 From: eliankeil <65242046+eliankeil@users.noreply.github.com> Date: Sat, 20 Dec 2025 12:06:12 -0300 Subject: [PATCH 1/2] soporte .yaml y .yml Soporte para .yml y .yaml en el editor de texto --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 22f17476..d55f7f3b 100644 --- a/src/main.c +++ b/src/main.c @@ -2014,7 +2014,7 @@ int IsSupportedFileType(char *path) if (strchr(path, ':') != NULL) { if (genCmpFileExt(path, "ELF")) { return (checkELFheader(path) >= 0); - } else if ((genCmpFileExt(path, "TXT") || genCmpFileExt(path, "CHT") || genCmpFileExt(path, "CFG") || genCmpFileExt(path, "INI") || genCmpFileExt(path, "CNF") ) || (genCmpFileExt(path, "JPG") || genCmpFileExt(path, "JPEG"))) { + } else if ((genCmpFileExt(path, "YML") || genCmpFileExt(path, "YAML") || genCmpFileExt(path, "TXT") || genCmpFileExt(path, "CHT") || genCmpFileExt(path, "CFG") || genCmpFileExt(path, "INI") || genCmpFileExt(path, "CNF") ) || (genCmpFileExt(path, "JPG") || genCmpFileExt(path, "JPEG"))) { return 1; } else return 0; @@ -2272,7 +2272,7 @@ static void Execute(char *pathin) LastDir[0] = 0; getFilePath(tmp, FALSE); if (tmp[0]) { - if (genCmpFileExt(tmp, "TXT") || genCmpFileExt(tmp, "CHT") || genCmpFileExt(tmp, "INI") || genCmpFileExt(tmp, "CFG") || genCmpFileExt(tmp, "CNF")) { + if (genCmpFileExt(tmp, "YML") || genCmpFileExt(tmp, "YAML") || genCmpFileExt(tmp, "TXT") || genCmpFileExt(tmp, "CHT") || genCmpFileExt(tmp, "INI") || genCmpFileExt(tmp, "CFG") || genCmpFileExt(tmp, "CNF")) { if (setting->GUI_skin[0]) { GUI_active = 0; loadSkin(BACKGROUND_PIC, 0, 0); From a15c7e860204748f12938abf0deb1b74635dc51e Mon Sep 17 00:00:00 2001 From: eliankeil <65242046+eliankeil@users.noreply.github.com> Date: Sat, 20 Dec 2025 12:13:02 -0300 Subject: [PATCH 2/2] soporte .yaml y .yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Incluir las extensiones en el grupo 4 de coloración de íconos --- src/filer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/filer.c b/src/filer.c index 384aa95f..43e81370 100644 --- a/src/filer.c +++ b/src/filer.c @@ -4475,6 +4475,8 @@ int getFilePath(char *out, int cnfmode) if (genCmpFileExt(files[top + i].name, "ELF")) iconcolr = COLOR_GRAPH2; else if ( + genCmpFileExt(files[top + i].name, "YML") || + genCmpFileExt(files[top + i].name, "YAML") || genCmpFileExt(files[top + i].name, "TXT") || genCmpFileExt(files[top + i].name, "CFG") || genCmpFileExt(files[top + i].name, "CNF") ||