Commit Graph

46 Commits

Author SHA1 Message Date
Andreas Mohr
01f1206186 Ticket #3962: support Geeqie image viewer.
Use Geeqie (a fork of GQview) as main image viewer, fallback to GQview.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-01-26 16:31:38 +03:00
Anatoly Kitaykin
1182dbdd93 misc/ext.d/doc.sh.in: fix program name.
Reported: https://bugzilla.altlinux.org/show_bug.cgi?id=35506.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-11-24 14:40:42 +03:00
Andrew Borodin
5f04962685 mcext/doc: improve open of documents in MS Office formats.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-08-19 17:20:28 +03:00
Andrew Borodin
1d19729690 Ticket #3926: clarify hadling of MS Word and Excel documents view.
Don't show error message for each not-installed program when view
documents in MS Word and Excel formats.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-07-21 18:06:38 +03:00
Artem S. Tashkinov
0075f36b69 Ticket #3919: use MPV as a fallback for mplayer -identify
mplayer is not currently actively developed and some people have long
switched to MPV - use it as a fallback for "mplayer -identify" command.

Also, give the user a hint about mplayer/mpv in case none of them is
installed.

Signed-off-by: Yury V. Zaytsev <yury.zaytsev@moneymeets.com>
2018-06-12 21:16:27 +02:00
Andrey Shcheglov
f161d19038 mc.ext: allow Java class files to be viewed even if JAD isn't on PATH
Closes MidnightCommander/mc#134:

  * `file -b` prints class file version, which `javap` doesn't by default
  * `javap`'s stderr should be suppressed as it may print `_JAVA_OPTIONS`
     if this variable is set

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-05-27 16:47:38 +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
Andreas Mohr
65421dcac7 Ticket #3568: fix image view info for JPEG files
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-03-08 21:47:50 +01:00
Xander Ziiryanoff
9296f0bd6d Ticket #3574: fix XDG silent open in background.
This bug was introduced in 0516ccd325.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-02-14 08:45:58 +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
Yury V. Zaytsev
c27c5cf37d Ticket #3578: fix mc.ext patterns for different makefiles
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-01-10 16:59:47 +01:00
Ranjan1018
7dc7eb3d14 Ticket #3509: fix not portable invocation of man.
mc called "man -l" to display man page files, which is not correct on OS X,
FreeBSD, etc, so patch out the -l to make it work.

Original patch: https://svnweb.freebsd.org/ports/head/misc/mc/files/patch-misc__ext.d__text.sh.in?annotate=382039&pathrev=382039

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-03 08:36:55 +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
karlovskiy
0516ccd325 xdg silent open in background
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:52 +03:00
Andrew Borodin
564deafe72 Ticket #3287: bind poedit to Edit action for .po files.
Thanks Marcel Pol <marcel at timelord dot nl> for original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-01-14 10:00:38 +03:00
Egmont Koblinger
d77999a6db Ticket #1539: Dealing with utf-8 man pages in view/open
Weird characters are displayed when viewing/opening man page files.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-09-02 14:33:51 +03:00
Andrew Borodin
ec7193af37 misc/ext.d/image.sh: minor clarification in image view/open actions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-22 13:10:41 +04:00
Andrew Borodin
8c767d2f08 Ticket #3187: use Joliet and RockRidge in ISO9660 image view action.
Thanks Rafał Mużyło <galtgendo@o2.pl> for the idea.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-03-25 13:17:29 +04:00
Andrew Borodin
249c3e2470 Ticket #3113: code cleanup before 4.8.12 release.
misc/ext.d/text.sh.in: don't concatenate directory and full file name.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:17 +04:00
Oswald Buddenhagen
ec33401a2e Ticket #2274: adjust script permissions to installed ones. 2014-01-26 13:38:48 +04:00
Slava Zanko
0bc183c842 Ticket #3101: F3 doesn't work on .so files in FreeBSD 9.x
FreeBSD 9.x doesn't accept syntax for viewing lib) files
processed by /usr/local/libexec/mc/ext.d/misc.sh
revealing "/usr/local/libexec/mc/ext.d/misc.sh: 25: Syntax error: | unexpected".

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-22 13:15:53 +03:00
Slava Zanko
cb57614b7a Ticket #2006: Display additional info while viewing (F3) *.iso files
Viewing (F3) on ISO image produce more information about image.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-07-05 15:21:59 +03:00
Gabriel VLASIU
41a168ab4c Fix filename for msppt in ext.d/doc.sh: use $MC_EXT_FILENAME not %f.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-03 14:21:03 +03:00
Alessio Ababilov
ed0bd98756 Fix info for ogg files in sound.sh
ogginfo should be shown for MC_EXT_FILENAME like other cases.
Using MC_EXT_SELECTED handles filenames with spaces incorrectly.

Signed-off-by: Alessio Ababilov <ilovegnulinux@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-03 14:21:02 +03:00
Sergey Y. Afonin
42f54a0a32 Implement quick and easy disable of xdg-open usage.
MC_XDG_OPEN=/bin/false can be used to disable xdg-open usage in
/usr/libexec/mc/ext.d/*.sh scripts.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-20 15:35:36 +04:00
Andrew Borodin
8031fa3a65 Fix name of LibreOffice executable file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Slava Zanko
5082d01ebd Ticket #1686: use 'see' utility for vieweing images
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:26:41 +04:00
Slava Zanko
804ccfb467 Ticket #1686: use 'see' utility as default pdf viewer when found
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:22:45 +04:00
Slava Zanko
1aa122b765 Ticket #1686: use dvicat if dvi2tty not found
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:22:45 +04:00
Slava Zanko
246c072e24 Ticket #2723: use libreoffice instead of ooffice, if found.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:22:45 +04:00
Slava Zanko
c44aabebe7 Ticket #2739: add support of PAR archives.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:22:45 +04:00
Slava Zanko
72db209691 Ticket #2739: add support of epub format.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:22:45 +04:00
Slava Zanko
fa3c7e71a8 Ticket #2739: add support of comic books.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:22:40 +04:00
Slava Zanko
5738b8d863 Ticket #2767: mc.ext: add support of ape, aac and wvm4a formats.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:22:27 +04:00
Andrew Borodin
30cdf01d05 Ticket #2895: add support of SVG images.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-09 14:21:09 +04:00
Andrew Borodin
d1779a895d Ticket #2890: make a choice between archivers for 7z.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-09 14:21:00 +04:00
Slava Zanko
2120c32b5a Ticket #2890: make a choice between archivers for arj.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:20:41 +04:00
Andrew Borodin
71ca307910 Ticket #2894: add support of Gnumeric's spreadsheets.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-09 14:20:29 +04:00
Slava Zanko
b03da1c3b3 Added support of viewing the compiled Java files (*.class).
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-27 11:11:05 +03:00
Slava Zanko
aa5ffa2b87 changed type of checking: used -n operator instead of -z
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-27 11:11:05 +03:00
Slava Zanko
8498c6afe0 Added support of SQLite database files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-27 11:11:05 +03:00
Slava Zanko
ce07bec728 Ticket #2103: mc.ext enhancement
This commit makes a few improvements in default bindings:

 * use chm_http text-mode handler for CHM files;
 * play sounds only from videos in text mode;
 * use pdftotext -layout -nopgbrk switches;
 * try to use elinks before links for HTML;
 * soffice2html text-mode handler for SXW files;
 * wvHtml text-mode handler for doc files;
 * xlhtml text-mode handler for XLS files;
 * ppthtml text-mode handler for PPT/PPS files;
 * open=view+pager fallback (noX) for PostScript, PDF, OD[PST] and DVI;
 * standarized $DISPLAY checks.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-27 11:11:05 +03:00
Andrew Borodin
d099c36a98 Ticket #2851: fixes of ext.d scripts:
* cleanup of undefined variables;
  * use proper variables instead of udefine ones.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-21 16:39:05 +04:00
Slava Zanko
40e8a0136b Added 'View' action to all video formats.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-06-29 13:14:29 +03:00
Molnár Károly
06285250aa Ticket #2751: Support *.lib artifacts generated by gputils utility
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-06-12 14:35:48 +03:00
Slava Zanko
ec7aafef83 Use xdg-open by default in mc.ext.in if present to open files,
fallback on current scheme otherwise.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-05-18 13:06:20 +03:00