Commit Graph

318 Commits

Author SHA1 Message Date
Slava Zanko
10401bb70e 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>
2013-11-08 14:58:48 +03:00
Andrew Borodin
e5e0a77bc9 Ticket #3050: don't use bright colors as background ones.
Only following colors can be used in 16-color skins:
black, red, green, brown, blue, magenta, cyan, lightgray.

Following colors are replaced in 16-color skins:

white -> lightgray
yellow -> brown
brightgreen -> green

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-17 09:28:19 +04:00
Sergey Naumov
1f05e56b5c Ticket #2978: fix for Home, End, Shift+Fn problems under screen/tmux.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-03 15:45:16 +04:00
Egmont Koblinger
930f683019 Handle newline and tab with shift/ctrl modifiers correctly.
MC already has its own half-ready trick: when pasting with Shift-Insert,
using the X11 extension, the newline ("Enter" as mc calls it) with the
Shift modifier pressed gets converted to a "Return", and in the editor
the Return character inserts a non-indenting newline. This makes pasting
better in terminals not supporting bracketed paste, however, it has some
problems that this commit addresses:

  * Shift+newline gets this special treatment, but Ctrl+newline gets
    dropped. Hence e.g. when pasting in Gnome-terminal with Ctrl+Shift+V
    all the newlines will be missing. This commit adds the same
    non-indenting newline behavior to Ctrl+Newline and Ctrl+Shift+Newline.

  * The code forgets about Tab that also needs special treatment:

    - Most terminals send \e[Z on Shift+Tab, this is not handled by MC
      at all, moreover it causes a hang for about a second. This commit
      teaches this sequence to MC. This is especially useful when no X11
      is available, because there Ctrl+Tab is identical to Tab, so the
      backwards tab feature is not available. With this commit Shift+Tab
      becomes a backwards tab too on all terminals that emit \e[Z.

    - When pasting to the editor, Shift+Tab, Ctrl+Tab and Ctrl+Shift+Tab
      should all insert a tab for the same reason mentioned at the newline.

    - It would look inconsistent in the keymap files to have logical code
      such as "backtab" instead of "shift-tab" and friends, hence get rid
      of KEY_BTAB and use KEY_M_SHIFT | '\t' instead.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-03 11:41:58 +04:00
Veres Lajos
dfbb2c9430 Typo fixes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-23 14:15:24 +04:00
Anton Bakai
f10ee1cb14 Fix for opening some jar files
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-23 14:15:24 +04: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
Andrew Borodin
45d8b20ad9 --with-edit: rename to --with-internal-edit.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-02 15:29:35 +03:00
Andrew Borodin
a467bb4b6e Ticket #3022: misc/mc.menu contains russian UTF-8 "Ó" instead of English "c".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-28 09:21:16 +04:00
Andrew Borodin
97e37308b9 Ticket #2737: set of 256-color skins from Oliver Lange <modarin@bloody.in-berlin.de>.
modarin256: a moderate-dark-independent 256-color skin for Midnight Commander.

This skin is using colors independent from the default 16 terminal colors,
i.e., no matter how the 16 standard colors are configured, the appearance
of Midnight Commander will not be affected.

There are 4 variants of this skin:

modarin256
  - default skin, no standard colors used.

modarin256-defbg
  - like modarin256, but using the default background color for core, editor,
    viewer, menu and popupmenu backgrounds, for use with (semi-)transparent
    background colors.

modarin256root
modarin256root-defbg
  - like the other two skins, but for the root user, with red colors used
    instead of green colors for things like select/focus/statusbar etc.,
    to keep reminding the user that mc is running as root.

Fallback skins for 16-color terminals (poor man's skins):

modarcon16
modarcon16-defbg
modarcon16root
modarcon16root-defbg
  - like everything running in a 16-color terminal, these skins look ugly
    and are no subsitute for the 256-color versions. As some terminals don't
    support using dark gray as background color, i used a black background
    and adjusted the remaining colors accordingly.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-17 13:53:14 +04: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
Andrew Borodin
2f06f513e4 Ticket #2974: broken opening of .war archives.
Widely used java web application .war archives are are .jar archives
which is essentially a zip archive with manifest file being the first
entry.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-20 16:57:03 +04:00
Andrew Borodin
ff2483e4b3 Rename keymap files to be with .keymap suffix.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 16:04:51 +04:00
infinitum
430e1f9d35 Ticket #2855: add syntax highlighting for JAL and LKR files.
The Jal is a programming language used in PIC microcontrollers.

The lkr files determines how the gplink program works. The gplink
is part of gputils and creates PIC microcontroller program.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 11:10:40 +04:00
Sergey Y. Afonin
e80abb1ad2 Ticket #2896: support syntax highlighting for makefile with .mak extension.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 10:59:18 +04:00
Polynomial-C
a317b62848 Ticket #2950: support of ZSH config files syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 10:51:43 +04:00
Serpiph
9400cd50d4 Ticket #2962: update Fortan syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-05 17:00:30 +04:00
Yury V. Zaytsev
be2883dc86 Ticket #2947: fix quoting and message in "Delete tagged files..." in user menu.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-02-28 10:18:22 +04:00
Slava Zanko
7fd906ba13 Add default options for most popular editors/viewers.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-02-16 17:40:37 +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
bf475ce339 Ticket #2934: highlight OGV files as media.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-23 14:20:04 +04:00
Sergei Trofimovich
45b129dd72 ebuild.syntax: add 'epatch_user' keyword
Thanks to Alexei Goncharevich and Pavel Gluschenko

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-11-06 12:13:01 +03:00
Andrew Borodin
b8e02442fd Fixed typo in sound file extension: "wvm4a" should be "wv".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +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
Andrew Borodin
d27a4f86ea Ticket #2888: cleanups in master branch.
Check perl, python and ruby programs and substitute them in various files.

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
98a1acbf8e Ticket #2891: add support of .war archives.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-09 14:20:29 +04:00
Slava Zanko
b3931a032e Ticket #2892: mc.ext: expand support of file extentions for source files
* Added support of .asm file extention
* Added support of .hh file extention
* All file extentions for source files now case insentetive.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:20:29 +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
Sergey Y. Afonin
013a3ff098 Ticket #2897: a lot of updates of mc.ext and ext.d.
Ticket #2893: add support of JNG and MNG images.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-09 14:18:38 +04:00
Andrew Borodin
c2ba41cdfc Ticket #2912: add psgi extension to Perl syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-08 16:52:04 +04:00
Andrew Borodin
353ed376ba Ticket #2664: ogm extension was deprecated in favor of .ogv.
Conform to http://wiki.xiph.org/MIME_Types_and_File_Extensions, .ogm
extension was deprecated in favor of .ogv (with mimetype video/ogg).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-09-05 13:50:31 +04:00
Gergely Szasz
d8aa98b7d4 Ticket #2863 (mcdiff bidirectional merge enhancement)
Added feature for the mcdiff for the bidirectional merge.
    With F15 mcdiffviewer merge left panel to right panel direction.

    original patch by Gergely Szasz <szaszg@hu.inter.net>

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

added bind "MergeOther" into mc.keymap.default, mc.keymap.emacs.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-08-30 10:43:20 +04:00
Slava Zanko
2a8c94352d Fixed OGV file extention handle.
Currently OGV files handles as video.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-29 13:02:48 +03:00
Artem S. Tashkinov
4fd2156c2d Ticket #2869: Added M4A support
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-29 13:02:48 +03: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