Commit Graph

20 Commits

Author SHA1 Message Date
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
Andrew Borodin
887bd8fe86 Ticket #4167: clarify e-books support.
mc.ext: add fb2 support.
ext.f/doc.sh.in: change key name for e-books.

Thanks korrado <anyhow2@mail.ru> for the issue.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-02-19 16:53:11 +03:00
Oswald Buddenhagen
31e7a7e963 Ticket #4127: several improvements to mc.ext and syntax highlighting.
add plenty of missing 'which' commands in ext.d.

the construct 'if <command>' to check the presence of a command would
work in some cases (though inefficiently), but it others it was just
bogus. in every case it was inconsistent and confusing.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-10-10 15:55:42 +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
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
karlovskiy
0516ccd325 xdg silent open in background
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:52 +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
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
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
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
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
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
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
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