611 Commits

Author SHA1 Message Date
Yury V. Zaytsev
f1094c9faa formatting: step 3 - add clang-format configuration
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2025-02-02 19:38:47 +01:00
Michelle Konzack
ed2891e1ea Ticket #4645: add muttrc config file syntax
Signed-off-by: Michelle Konzack <linux4michelle@tamay-dogan.net>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2025-02-01 09:52:10 +01:00
Jonas Smedegaard
e1a816aaee Ticket #4644: syntax highlighting for Turtle RDF files
Signed-off-by: Jonas Smedegaard <dr@jones.dk>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2025-01-31 18:10:23 +01:00
Valery Kartel
2cb95529f0 Ticket #4637: add syntax definition for Alpine's APKBUILD
Signed-off-by: Valery Kartel <valery.kartel@gmail.com>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2025-01-31 17:35:00 +01:00
Tomasz Kłoczko
a9bef1575b Ticket #4638: update RPM SPEC file syntax highlighting (patch from Fedora)
Signed-off-by: Tomasz Kłoczko <kloczek@fedoraproject.org>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2025-01-31 17:31:32 +01:00
Yury V. Zaytsev
8cba5f6e51 doc: switch links to https://, update or remove dead links
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2025-01-31 10:12:32 +01:00
Yury V. Zaytsev
24602c3281 Ticket #3147: implement extfs support for SquashFS
Requires squashfs-tools, initial code contributed by Unknown.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2025-01-25 20:07:06 +01:00
Andrew Borodin
f7a9048222 buildsys: add EXTFSHELPERSDIR variable for extfs.d directory.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2025-01-13 09:03:18 +01:00
Slava Zanko
0924772fa1 Ticket #3100: Embedded torrent viewer/vfs
Currently ext.d viewer for torrent is partially broken since ctorrent
is used and it broken in most distributions (http://sourceforge.net/p/dtorrent/bugs/21/).

This patch adds viewer and vfs support based on script found here: http://phdru.name/Software/mc/torrent

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2025-01-13 09:03:18 +01:00
Artem S. Tashkinov
344c5c3d33 filehighlight: update to close MidnightCommander/mc#208
- Add awb: https://en.wikipedia.org/wiki/Adaptive_Multi-Rate_Wideband
- Add y4m: RAW video format, https://wiki.multimedia.cx/index.php/YUV4MPEG2
- Add tga: https://en.wikipedia.org/wiki/Truevision_TGA

Signed-off-by: Artem S. Tashkinov <birdie-github@users.noreply.github.com>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2025-01-11 12:13:16 +03:00
Kirill Rekhov
feb331bba3 Ticket #4602: fix typo in mc.emacs.keymap.
Closes MidnightCommander/mc#207.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2025-01-11 12:13:16 +03:00
André Draszik
c13f4e50e7 Ticket #4626: mc.ext.ini: support OpenEmbedded ipk archives
Two types of ipk archives appear to exist:
* OpenWRT
* Openembedded / Yocto

The former is a (gzip-compressed) tar archive, which appears to be
modelled after the Debian package format (but not matching it
exactly!), containing the three files debian-binary, data.tar, and
control.tar (the latter two may be compressed).

The latter is a proper Debian archive, which means it's an ar archive,
with the files debian-binary, control.tar, and data.tar in exactly this
order. control and data may also be compressed.

While modelled after the Debian package format [1], OpenWRT ipk
archives don't strictly adhere to it: Debian packages should be ar
archives (not tar) and the order of files inside the archive matters
(OpenWRT doesn't follow this).

Midnight Commander is currently unable to display the Openembedded ipk
archives as both use the .ipk suffix, and because one is a tar- and one
is an ar archive, and because the ipk suffix is hooked up to
Include=tar.gz, which (obviously) doesn't support ar archives.

Update mc.ext.ini to also handle OpenEmbedded ipk packages by also
inspecting the type, in addition to the suffix. Note that we can not
unconditionally use the deb rule for both types because the OpenWRT
package don't strictly conform to the Debian package format and
dpkg-deb and friends complain.

Link: https://manpages.debian.org/bookworm/dpkg-dev/deb.5.en.html [1]
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2025-01-08 17:08:21 +03:00
Andreas Mohr
8f4b10bdfd Ticket #4615: (web.sh) - select browser at runtime fixes
- use POSIX compatible builtin 'command' (all ext.d scripts use it)
- allow 'web.sh' git handling

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2024-12-19 20:29:07 +03:00
Andreas Mohr
e3689b52b1 Ticket #4615: web.sh - select browser at runtime
Current browser selection happen on compile time and should change to runtime selection.

- add chromium browser to list
- bonus: remove shellcheck warning

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2024-12-17 09:32:22 +03:00
Yury V. Zaytsev
63a51cdcd7 Ticket #4609: treat Rust crates as tar.gz archives
534ce68621/src/cargo/ops/cargo_package.rs (L185)

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2024-12-06 16:13:02 +03:00
Yury V. Zaytsev
f0107ce193 Ticket #2633: add xterm-clear terminal definition for FreeBSD termcap
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2024-10-22 13:21:19 +02:00
Dmitry Atamanov
8fc494fa63 Ticket #4572: code cleanup before 4.8.33 release
Add shtml to mc.ext.ini (closes MidnightCommander/mc#205)

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2024-10-05 15:05:58 +03:00
Yury V. Zaytsev
1e0e6b5e1e charset: rename IBM866 to CP866 for iconv and adjust charset names for codeset
```
linux $ iconv -l | grep 866
866//
866NAV//
CP866//
CP866NAV//
CSIBM866//
IBM866//
IBM866NAV//

solaris $ iconv -l | grep 866
    CP866 (CP866, CP-866, CP_866, 866),
    IBM-866,

macos % iconv -l | grep 866
CP866 866 CSIBM866 IBM866 MSCP866

musl/src/locale/codepages.h: "cp866\0"
```

On glibc-based systems, codeset will be set to charmap name, on most other systems it seems to be taken from locale name.

## Linux

```
zaytsev@fedora:~$ locale -a | grep ru
ru_RU
ru_RU.cp866
ru_RU.ibm866
ru_RU.iso88595
ru_RU.koi8r
ru_RU.utf8
russian
ru_UA
ru_UA.koi8u
ru_UA.utf8

zaytsev@fedora:~/src$ LC_ALL=ru_RU.cp866 LANG=ru_RU.cp866 ./a.out
IBM866

zaytsev@fedora:~/src$ LC_ALL=ru_RU.koi8r LANG=ru_RU.koi8r ./a.out
KOI8-R

zaytsev@fedora:~/src$ LC_ALL=ru_RU.iso88595 LANG=ru_RU.iso88595 ./a.out
ISO-8859-5
```

## macOS

```
ru_RU.ISO8859-5
ru_RU.CP866
ru_RU.CP1251
ru_RU.UTF-8
ru_RU.KOI8-R
ru_RU

zaytsev@Yurys-MBP mc % LANG=ru_RU.CP866 LC_ALL=ru_RU.CP866 ./a.out
CP866

zaytsev@Yurys-MBP mc % LANG=ru_RU.ISO8859-5 LC_ALL=ru_RU.ISO8859-5 ./a.out
ISO8859-5
```

## FreeBSD

```
ru_RU.CP1251
ru_RU.CP866
ru_RU.ISO8859-5
ru_RU.KOI8-R
ru_RU.UTF-8

zaytsev@cfarm240:~ $ LANG=ru_RU.ISO8859-5 LC_ALL=ru_RU.ISO8859-5 ./a.out
ISO8859-5

zaytsev@cfarm240:~ $ LANG=ru_RU.CP866 LC_ALL=ru_RU.CP866 ./a.out
CP866
```

## Solaris

```
ru
ru.UTF-8
ru.koi8-r
ru_RU
ru_RU.ANSI1251
ru_RU.ISO8859-5
ru_RU.KOI8-R
ru_RU.UTF-8

zaytsev@gcc-solaris10:~/src$ LANG=ru_RU.ISO8859-5 LC_ALL=ru_RU.ISO8859-5 ./a.o>
ISO8859-5

zaytsev@gcc-solaris10:~/src$ LANG=ru.koi8-r LC_ALL=ru.koi8-r ./a.out
KOI8-R
```

## AIX

```
zaytsev@gcc111:[/home/zaytsev]locale -a
C
POSIX
en_US.8859-15
en_US.IBM-858
en_US.ISO8859-1
en_US

-bash-5.1$ LANG=en_US.ISO8859-1 LC_ALL=en_US.ISO8859-1 ./a.out
ISO8859-1
```

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2024-10-05 11:49:26 +02:00
Kirill Rekhov
f425b90402 Ticket #4588: add vim keymap
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2024-09-23 14:00:47 +02:00
Yury V. Zaytsev
50976cec62 shell: replace which with command -v for speed and POSIX compatibility
https://stackoverflow.com/a/677212/5132088

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2024-09-11 08:45:25 +02:00
Yury V. Zaytsev
572312bd88 Ticket #4479: prioritize console players for audio/video and images
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2024-09-10 10:00:28 +02:00
Andrey Semashev
92f56dc679 Ticket #4583: Fix a typo for apt view command line.
Fixes MidnightCommander/mc#206.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2024-09-05 10:57:05 +02:00
Morthimer McMare
cd8355bfa8 Ticket #4556: color definitions in the "c.syntax" highlight file.
Definitions are provided for:
- Various punctuation (divided into 9 groups);
- Preprocessor;
- Keywords;
- Data types;
- Data type qualifiers;
- Numbers (can be different for the integer, hexadecimal, octal and floatpoint representations);
- Strings and escaped characters;
- Comments (with keywords like "TODO:");
- Labels.
In total 32 "defines"...

Based on the original "c.syntax" file, this version includes most of the content from C89..C23.

Closes MidnightCommander/mc#203.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2024-07-25 21:38:44 +03:00
Yury V. Zaytsev
9f02d1339d mc.ext.ini: grammar. 2024-05-30 21:17:00 +03:00
Andrew Borodin
3d9ff0fbb7 mc.ext.ini.in: escape dot in gettext catalogs regex.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2024-05-30 21:17:00 +03:00