Commit Graph

26 Commits

Author SHA1 Message Date
Andrew Borodin
3c95e6d64c Ticket #4015: add new extensions for file highliht.
[temp]: part (partial files, e.g. used by many download managers)
[archive]: apk (android packages), deb (debian packages)
[media]: ts (MPEG-TS streams)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-09-14 11:34:08 +03:00
Andrew Borodin
3ac46bf2b1 Ticket #3966: file highlighting updates.
.go, .s: highlight as source;
.m4v: highlighting as media.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-01 19:55:40 +03:00
Dan Dascalescu
2eb7ef9e04 filehighlight: add JavaScript module support (closes MidnightCommander/mc#132)
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-05-27 16:21:01 +02:00
Adam Borowski
5eb9bd605e Ticket #3906: ZSTD support.
Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-03-19 15:00:23 +03:00
Andrew Borodin
566992da32 Ticket #1620: change file highlighting defaults.
Now file highlighting by extension is case insensitive by
default.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-02-18 12:05:05 +03:00
Artem S. Tashkinov
75674446e4 Ticket #3834: add ac3, aac, dts and m4a media extensions
Closes MidnightCommander/mc#128:

  * https://en.wikipedia.org/wiki/Advanced_Audio_Coding
  * https://en.wikipedia.org/wiki/M4A (used extensively by Apple)
  * https://en.wikipedia.org/wiki/Dolby_AC3
  * https://en.wikipedia.org/wiki/DTS_(sound_system)

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-07-09 10:16:17 +02:00
Yury V. Zaytsev
91b69d2652 Ticket #3782: highlight txz extension as archive like tgz, etc.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-03-06 21:44:26 +01:00
Yury V. Zaytsev
f51c0f3e7c filehighlight: add more common file formats
* odp / ods / odt: ODF documents
  * xls: not a database, consistency with xlsx
  * rb: Ruby program
  * xq: XQuery program
  * svg: Scalable Vector Graphics format
  * tiff: alternative extension for Tagged Image File Format
  * xcf: GIMP format

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-05-07 16:28:47 +03:00
Pavol Rusnak
7c7673d8f0 MidnightCommander/mc#89: add webp extension to file highlight and extension files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-05-07 16:19:02 +03:00
Andrew Borodin
88b489ee33 filehighlight.ini: externsions are alphabetically sorted.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
b3f4fc2212 Ticket 3547: code cleanup bebore 4.8.16 release.
filehighlight.ini: add lzma extension.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
8fc0e1d76d Ticket #2673: support LZIP compression.
Thanks Matias A. Fonzo <selk at dragora.org> for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-28 16:45:36 +03:00
Andreas Mohr
b5ccd12d32 Ticket #3523: support lz4 compress format.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-02 14:02:08 +03:00
Andrew Borodin
bf475ce339 Ticket #2934: highlight OGV files as media.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-23 14:20:04 +04:00
Slava Zanko
fcd5ea0ddb Ticket #2746: Add WebM support
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-05-28 14:34:30 +03:00
Slava Zanko
e0875b12c5 Added file types for MS Office files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-12 12:06:21 +03:00
Artem S. Tashkinov
9799869636 Ticket #2646: A few useful additions to filehighlight.ini
Added a few common file types to filehighlight.ini, namely
 * 7z, ace to archives
 * flac, ape, wma, wmv, 3gp to media

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-12 12:06:20 +03:00
Slava Zanko
2712ec2ca8 Changes for respect new 'HARDLINK' highlight type.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-02-18 15:20:34 +02:00
Slava Zanko
12ed4d0b45 Ticket #1753: panel: bad mounpoint is no longer 'red' highlighted
Restored behavior with stale mountpoint (now handled as stale link).

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-29 16:48:51 +02:00
Slava Zanko
71642b9bdb Ticket #1620: File hightlighting based on extension is case sensitive.
Added parameter extensions_case.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-07 10:42:25 +03:00
Slava Zanko
bdfc9adf39 Continue development of skins
* Remove highlight of hidden filenames.
 * Fixed colors with ncurses screen library
 * Fix lines drawing with ncurses screen library.
 * Fix drawing of lines in slang with non-utf codepages.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>

 * Code cleanup.
 * Code cleanup, refactoring and optimization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-18 11:56:12 +03:00
Slava Zanko
2216332c0c continue develop of skins.
* Compile with option --with-screen=ncurses
 * Added default init of colors (if color description is null)
 * Renamed some color pairs. All static color pairs now cached.
 * Fix cursor show in panel over selected files in b&w color scheme.
 * Fix editor highlight
 * Handle old-style colors definitions.
 * Fix showing box lines in onebyte codepages.
 * Fix segfault with:
 * mc -C 'menu=blue,white:'
 * Fix reading of color backgrounds from old-style color definition strings.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>

 * Fixed typos.
 * Added ACS_PLUS char and related stuff.
 * Changed order of colors.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>

 * Fixed pseudo-graphics drawing for S-Lang library and 8-bit locale.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-18 11:54:20 +03:00
Slava Zanko
981fe001d1 Base support of skins.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-18 11:49:44 +03:00
Stan. S. Krupoderov
edddd5f5d3 Ticket #1596: hidden file higlighing
remove highlight for hidden, extend templates for higlight by ext

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-09-14 22:47:13 +04:00
Slava Zanko
edab903a19 Ticket #1597: panel: restore red hilight for broken symlinks
Fix for restore highlighting of stale links.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-14 12:48:50 +03:00
Slava Zanko
4afc04eedc Ticket #418: File coloring
Added support of filenames highlighting in panels.

Now rules of highlighting described into external file filehighlight.ini
Number of highlight rules is unlimited (in opposite to X-Stranger patch).

Highlight will made by:
 * file type (directory, regular, symlink, special device etc.)
 * extensions of filenames (ends of filenames)
 * regular expressions

Big thanks to X-Stranger <x@linux.by> for idea
and to Alexey Kaminsky <alexeykaminsky@gmail.com> for testing.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-03 13:12:17 +03:00