Commit Graph

598 Commits

Author SHA1 Message Date
Sergey Sharybin d02abd003a Ticket #3762: initial support of OpenShadingLanguage highlighting.
Based on C syntax with some extra keywords gathered from OSL's lexer rules.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-29 09:40:31 +03:00
Oleksii Tsvietnov 91c96494f2 skins: add yet another dark theme (YADT) by vorakl (MidnightCommander/mc#115)
Signed-off-by: Oleksii Tsvietnov <me@vorakl.name>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-01-24 20:49:40 +01:00
Mooffie 2e078ff774 mcedit: syntax.syntax: highlight comments preceded by spaces.
Comments don't have to start at the 1st column. We add support for this case.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00
Andrew Borodin 079d989877 misc/syntax/Syntax.in: fix patterns.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00
Mooffie 54a0ccecaa Ticket #3293: YAML syntax fixes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-06 11:19:16 +03:00
Roman Belda 055a8c6a4f Ticket #3293: add YAML syntax highlighting. 2016-12-04 17:56:27 +03:00
Andrew Borodin 76849655ba Revert "Ticket #3724: add true color skins: "Four seasons"."
This reverts commit 7b9d78d28c.
2016-12-04 13:02:19 +03:00
Egmont Koblinger 7b9d78d28c Ticket #3724: add true color skins: "Four seasons".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 10:41:56 +03:00
Andrew Borodin 0701bca6e3 Ticket #3710: don't parse "window-state-char" and "window-close-char" as colors.
The bug: in skin files, the "[editor]" section's "window-state-char" and
"window-close-char" (whose values, as the name implies, are single
characters) are parsed as color fg+bg+attr, and an ncurses/slang
colorpair is allocated for each.

The bug fix: move "window-state-char" and "window-close-char" keys from
"[editor]" section to "[widget-editor]" one.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 10:01:57 +03:00
Sergey Sharybin 0fe1eca733 Ticket #3690: initial support of OpenCL syntax highlighting.
Based on opencl-mode from Emacs with some own tweaks.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-21 14:30:20 +03:00
Sergey Sharybin 97430c1fa4 Ticket #3691: mcedit: disassociate .cl file extension from LISP syntax.
According to the LISP users this file extension can only be
seen in old projects and nowadays it's much more common in
the computer graphics applications for the OpenCL programs.

This is a part of work related on adding OpenCL syntax highlight
to mcedit. See tocket #3690 for the details.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-21 14:26:01 +03:00
Egmont Koblinger 0cceb99c2e Ticket #3711: support color aliases in skin files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-21 10:52:37 +03:00
Yury V. Zaytsev f3509db2bc syntax: highlight *.t (Perl test) files as Perl scripts
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-11-13 16:22:02 +01:00
Lars Wendler 2c576fad94 mcedit: syntax: update ebuild.syntax to include new EAPI 6 keywords
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-10-08 10:44:37 +02:00
Raymond Jennings 6b656100ac mcedit: syntax: fix mismatched highlighting for <{o,u}l> HTML tags
Signed-off-by: Raymond Jennings <shentino@gmail.com>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-10-07 22:38:07 +02:00
Andrew Borodin ef5f1fa3eb Ticket #3672: allow rebind TAB key to change panel.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-10-03 15:21:57 +03:00
Sergey Sharybin 9c3fe04114 Ticket #3686: initial support of CUDA syntax highlighting.
Based on existing cxx.syntax file with some extra keywords added.

Colors could be tweaked a bit still, and perhaps list of keywords
and built-in types could be extended further, but it should be a
good starting point already.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-09-11 11:13:51 +03:00
Sergey Sharybin 834c09a283 Ticket #3683: initial support of GLSL syntax highlighting.
This is an initial support of GLSL syntax highlight for mcedit.
Keyword and and built-in function lists are based on glsl-mode.el
from emacs (which is originally written by Xavier Decoret and
Jim Hourihan).

Supports GLSL 4.5.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-08-31 11:06:28 +03:00
Mooffie 4a0f265d95 Ticket #3075: (midnight_callback): make alt-enter, ctrl-enter, ctrl-shift-enter bindable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-08-04 10:23:29 +03:00
Mooffie b218a28a45 mcedit: syntax: associate node executables with JavaScript syntax.
Some distros name the binary 'nodejs', some 'node'.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-07-29 09:32:04 +03:00
Yury V. Zaytsev fea323e1ad Update ebuild.syntax to include new EAPI 6 keywords
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-05-08 18:42:43 +02: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
Konrad Twardowski 4aea217d68 MidnightCommander/mc#95: update Java syntax: add missing keywords: _ assert strictfp.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-05-07 16:19:02 +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
Andreas Mohr 284003e838 Ticket #3609: install mc.keymap as a symlink to mc.default.keymap
Save space and fix rpmlint warning found by OBS Framework
(build.opensuse.org).

mc.x86_64: W: files-duplicate /etc/mc/mc.keymap /etc/mc/mc.default.keymap

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-05-01 11:20:07 +02:00
Andrew Borodin 438f1498b3 mc.ext: add View action for initrd.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-28 09:05:29 +03:00
Sergey Y. Afonin 0cb1a3c9f3 mc.ext: fix regular expression for initrd.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-28 09:05:29 +03:00
serpiph b678d3b2fd Ticket #3618: update f90 syntax. 2016-03-16 09:36:26 +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
Yury V. Zaytsev fff8b4dd7a Delete outdated and unmaintained `mc.menu.sr.in`
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-03-08 20:43:05 +01:00
Andreas Mohr becc0d01d0 Ticket #2947: mc.menu: quoting and whitespace fixes
`$*` must be quoted unless it's a command
`%*` must not quoted (already quoted)

1) quoting fixes
2) indentation fixes
3) `while` replaced by `for` loops
4) header comment (taken from source code)

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-03-08 20:43:05 +01:00
Andreas Mohr 7da330ce77 Ticket #3586: mcedit - fix "Lower case selection" command in User Menu
Fix bug #3586 reported by rimf (plus minor tweak remove unneeded
cat/pipe command)

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-03-04 09:23:36 +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
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 466a6f71bf Ticket #3115: add mc.ext patterns for initramfs / initrd (Red Hat and Debian)
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-01-10 16:59:47 +01: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
Phil Friderici b4c550e23e Add Puppet v4 & stdlib keywords
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-07 09:04:35 +03:00
Holger Bruenjes d0435fcfee Ticket #3443: patchfs extfs: support xz compression.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-03 11:21:28 +03: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
Eugene San (eugenesan) 549efda171 mceditor: syntax: add golang
Based on http://go-lang.cat-v.org/text-editors/mcedit/
2016-01-01 17:44:26 +04:00
karlovskiy 0516ccd325 xdg silent open in background
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:52 +03:00
Sergej Pupykin 8e72b1e13f Update PKGBUILD.syntax according to latest pacman version.
Add msg, debug, validpgpkeys, changelog, checkdepends, epoch, buildflags, upx
and remove force keyword according to current PKGBUILD man.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-06-20 20:59:48 +03:00
Sergej Pupykin 20b90cbfea Tickt #3484: update PKGBUILD.syntax according to latest pacman version.
Remove [\s]* from patterns. Assume that PKGBUILD-specific variables
must start from linestart. (Usualy they do.)

[\s]* cause conflicts on 'install' keyword for example when install
command highlighted as PKGBUILD-specific variable.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-06-20 20:59:32 +03:00
Mooffie 68849625cf Ticket #3471: improve Lua syntax highlighting.
* Support for "long" strings/comments.
* Fixed Syntax.in to recognize both "#!/path/to/lua"  and "#!/usr/bin/env lua".
* Fixed langauge name (it's "Lua", not "LUA").

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-06-18 21:17:40 +03:00
Andrew Borodin 0add36df23 Ticket #3422: recognize .gmo files as well as .mo ones.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 18:51:50 +03:00
Egmont Koblinger da149a0ae6 Ticket #3246: misc/mcedit.menu.in: better grammar.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-02-26 09:17:10 +03:00
Egmont Koblinger 89d2db5ca3 Ticket #3065: support of italic text.
Italic text is supported by S-Lang since pre2.3.0-107 and NCurses since 5.9.20130831.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-02-17 15:22:53 +03:00
Nerijus Baliunas 56e72b4b50 Ticket #3391: support mobi e-books.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-01-22 09:22:46 +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
Bostjan Skufca 17dddbbfda Ticket 3266: Add puppet manifest syntax support - use .pp extension (was used for Pascal highlighting)
Support for puppet manifest highlighting was kindly
provided by Sergey Zhuga, original is here:
https://github.com/scrill/puppet-syntax-mcedit

Mr. Zhuga agreed with inclusion in mainstream MC:
https://github.com/scrill/puppet-syntax-mcedit/issues/2

Reasons to favor puppet syntax over pascal for .pp files:
---------------------------------------------------------
I will not argue whether in 2014 pascal is still being used or not,
and to what extent. I would like to point out that whoever is using
any variation of pascal for any serious development, is probably not
using 'mcedit' as an IDE. Instead, this development activity is
probably situated in nice, fully-featured graphical IDE.

Platform wise, judging by the weekly download statistics of FreePascal
at SourceForge, at this moment more than 80% of all downloads are for
Windows environents. On the other hand Midnight Commander is Linux
based. Considering this in combination with speculation from the
previous paragraph, there seems to be only a small chance that 'mcedit'
is being used as an editor of choice for pascal development.

On the contrary, puppet currently certainly does have wider audience
amongst sysadmins, who regularly use Linux. Puppet master requires a
server (usually) and quite a few sysadmins edit files directly on
servers that act as puppet masters for puppet development
environments.

When accessing these servers remotely, mcedit comes very handy for
quick edits here and there. Also keep in mind that puppet files are
normally not very large. Therefore actual IDE would be an overkill and
'mcedit' does the job quite ok, but syntax highlighting would be
much appreciated.

To sum it up:
If we speculate about the *actual* usage of 'mcedit', I do believe that
a wider audience would benefit by having .pp files highlighted by
default with puppet syntax definition instead of pascal syntax
definition.
2015-01-12 17:58:01 +03:00
Andreas Köhler 95f97b73d1 Recognize "Java archive data (JAR)" as zip archive.
The 'file' utility determine the file type differently:

till file-5.16 - Java Jar file data (zip)
since file-5.17 - Java archive data (JAR)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 12:57:47 +03:00
Ilia Maslakov 94a1c98aea Ticket #3228 (select/unselect files with the same extension as the current file)
Add Action 'SelectExt' for select/unselect files with the same extension as the current file.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2014-09-25 15:07:55 +04:00
Egmont Koblinger b11dd89087 Fix for viewving man pages in colour mode.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-09-04 16:31:49 +03:00
Slava Zanko d3e80d0c46 Ticket #3243: "User menu -> View manual page" doesn't do coloring
Rename menu.mc and menu.mc.sr for substitute variables from configure.ac file

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-09-04 13:01:40 +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
Egmont Koblinger 1aa16a0972 Ticket #3244: add viewbold and viewselected missing from some skins.
Change "black" and "white" to "rgb000" and "rgb555" when it's rendered
in bold, because the legacy 16 colors change their actual color in
addition to going bold in most of the terminals which is undesired.
Second, there was some unintended difference between the two gray skins
in the file type colors.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Veres Lajos 8d4d8d275f A few typofixes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Ulya Fokanova 6951e39590 Ticket #3216: improve CMake syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-25 09:33:44 +04:00
Yves Lavoie 0eb70f58d1 Ticket #3230: PHP.syntax improvement
Current php.syntax (Utopic 3:4.8.12-1) gets confused with embedded HTML or DOCTYPE statements with strings.
Here's a suggested patch to fix it.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-07-22 16:38:43 +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
Slava Zanko 29f81d96c9 Ticket #3204: As user, I want to use own default colors for viewer.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-05-07 23:03:33 +03:00
Egmont Koblinger 908a6937e6 Ticket #3190: add light gray skins: gray-green-purple256 and gray-orange-blue256.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-04-16 16:36:01 +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
Egmont Koblinger a9d02894a1 Ticket #3180: remove DFF_FOLDER_COLOR. It's unused.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-03-16 17:14:54 +04:00
Egmont Koblinger 38a6c44091 Ticket #3184: minor skin cleanups.
* Consistent indentation: All skins use now 4 spaces (the default of
mcedit). This makes it easier to copy-paste sections from one skin to
another, while maintaining consistency.
  * Spaces around the '=' sign. The version with spaces is more
readable, especially around double line characters.
  * Make the order of the sections consistent across all skins.
  * In [menu], swap the order of "menusel" and "menuhot" to make the
order consistent with the [dialog] and [error] sections.
  * Add the missing "helptitle" to sand256 skin. This is the only
functional change.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-03-16 17:07:49 +04:00
Egmont Koblinger 5943929956 Ticket #3183: diffviewer line drawing fix.
The "topmiddle" and "bottommiddle" characters are defined incorrectly
in many skins. This is because the correct definition wouldn't work
with S-Lang build. The only place these characters are used is the
diffviewer if either the +/- signs or the line numbers are shown,
enabled by pressing S or L. The correct definition of these characters
currently show up as 'v' and 'w' characters.

The fix makes the diffviewer use tty_print_alt_char() as it is being used
in other parts of the code, and hence it fixes the bug.
It also fixes the skin definitions.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-03-16 17:02:46 +04:00
Egmont Koblinger 9bbc51098e Ticket #3154: fix the look of nicedark skin on black-on-white terminals.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-22 16:52:13 +04:00
plastikat 3d3a5ecbb9 Ticket #2978: support Shift+Fn keys for 256-color mode of tmux
...and probably for 256-color mode of screen.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-22 15:21:27 +04:00
Andrew Borodin bf474e1241 Ticket #2165: basic version of the user-friendly skin selector.
Thanks Egmont Koblinger and Vitaliy Filippov for original patches.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-11 15:13:09 +04:00
Egmont Koblinger a45ba8054a Ticket #3133: keypad '*' doesn't work with numlock off.
Fix typos in misc/mc.lib.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:17 +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
Egmont Koblinger 3f7baba96c Ticket #3157: unify panel sort arrow's direction.
Fix inconsistency of the arrow's direction in the panel header line
across skins.
Change default value of "sort-sign-down" from "," (comma) to "." (dot).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-01-26 14:48:42 +04:00
Oswald Buddenhagen ec33401a2e Ticket #2274: adjust script permissions to installed ones. 2014-01-26 13:38:48 +04:00
Andrew Borodin 031ab1711c Ticket #2857: add handling .zip extension.
Add 'shell/i/.zoo' to detect zip archive using .zip extension
in addition to 'type/i/^zip\ archive'.

Thanks ctmp1 <gvlatyshev@gmail.com> for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-01-14 15:50:11 +04:00
Andrew Borodin 4e6dc8cbc9 Ticket #3044: invalid order of filename and line number for external editor.
Most applications require the line number to precede the filename,
with apparently 'vim' and 'mcedit' being the only exceptions
(they accept both possible orders). E.g. 'emacs +10 /etc/services'
opens that file at line 10, but 'emacs /etc/services +10' simply
ignores the line number.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-29 14:03:53 +04:00
tiandrey b34e1d2988 From ticket #3057: Update for Syntax.in file
This patch fixes syntax highlighting for files in .config directory
(I was wondering why my rc.lua file in ~/.config/awesome is highlighted
as 'Java File' while in /etc/xdg/awesome it was highlighted correctly).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
Slava Zanko 49805a3e23 Ticket #3051: Prepare for release mc-4.8.11
From ticket #3044: mc.lib typo: linenog
mc.lib has a typo. "less=%filename +%linenog" instead of "+%lineno"

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +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
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
Slava Zanko b71f35ee60 Implement case insensitive for type keyword.
type/i is used now for case-insensitive type patterns.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-03 15:16:18 +04:00
Andrew Borodin ca6be65562 Use shell instead of regex for simple regular expressions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-03 15:16:18 +04:00
Andrew Borodin 81c3d80f4b Implement case insensitive for shell keyword.
shell/i is used now for case-insensitive shell patterns.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-03 15:16:17 +04:00
Andrew Borodin cbcae18836 Implement case insensitive for regex keyword.
regex/i is used now for case-insensitive regular expressions.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-03 15:16:17 +04:00
Andrew Borodin 09427eacad mc.keymap.default, mc.keymap.emacs: comment out unassigned commands.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-31 14:50:11 +04:00
Andrew Borodin 068a2e56e2 mc.keymap.emacs: fix of LinkSymbolicRelative keymap.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-27 10:35:40 +04:00
Leonid Krivoshein ed51e5830f Ticket #2649: dlink.syntax: syntax highlighting for D-Link switches command set.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-27 10:17:11 +04:00
Ralesk cac767fc44 Ticket #2084: cmake.syntax: preliminary syntax file for CMakeLists.txt files.
It's nowhere near complete, but it's better than nothing.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-27 10:06:32 +04:00
nafraf b69d41d127 Ticket #2542: assembler.syntax: x86 AMD64 registers highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-27 09:55:29 +04:00
Victor Homyakov 3a055b4d7c Ticket #1869: properties.syntax colors are difficult to read.
Syntax file properties.syntax used very dark color for keys (cyan is
almost invisible on default MC background), and bright color for
delimiters (yellow), which made highlighted file difficult to read.

Change keys color to yellow.
Change delimeters color to bright cyan.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-27 09:40:50 +04: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
Andrew Borodin 488c3f3500 misc/mc.ext.in: update change description.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-20 12:01:49 +04:00
Andrew Borodin 9cf11516fc Ticket #2839: Fix keybindings for Quit command of mcedit.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Andrew Borodin 3d4ed51b7c Remove misc/edit.spell.rc since aspell is supported by mcedit directly.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-12 16:00:49 +04:00
Ilia Maslakov 1d4ca9608a Ticket #2788 (aspell support)
Add aspell support for internal editor.
The aspell library is dinamycally loaded.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-07-12 16:00:45 +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
Slava Zanko f2613ea2a6 Ticket #2820: Typo fix 'oofice' -> ooffice
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-06-29 13:14:29 +03:00
Andrew Borodin ba79784948 Add icons to close window and toggle window state using mouse.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin 4fa4e7568d Skin support for window frames.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin 2bb6cb2a32 Add toggle fullscreen mode of editor windows.
Initially, window is created in fullscreen mode.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin 3b72e4275b Switch windows using keyboard.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:46 +04:00
Andrew Borodin 1c33972ee5 Add CK_Close action to close current open file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:40 +04:00
Andrew Borodin 98e0de0c3a Handle CK_Help, CK_Quit and CK_About actions in dialog level instead of widget one.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:40 +04:00
Andrew Borodin b50f4f07e5 Allow move and resize edit window using keyboard.
Add "Window" menu entry in editor main menu to handle editor windows.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:16 +04: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 fcd5ea0ddb Ticket #2746: Add WebM support
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-05-28 14:34:30 +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
Slava Zanko d14f481785 src/filemanager/ext.c: Added ability to export global variables to external programs called from mc.ext file.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-05-18 13:06:20 +03:00
Egmont Koblinger 75febfe7c7 Ticket #2807: incomplete sand256 skin.
When using the sand256 skin, selected element is not highlighted in
pop-up menus.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-13 14:39:11 +04:00
Gergely Szasz 781378196e Ticket #1437: install mceditor scripts as scripts not as data files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-04 18:10:27 +04:00
Osamu Aoki 33540e53cb Ticket #2798: support of .cpio.xz files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-30 11:31:09 +04:00
Patrick Winnertz 9848716a41 Ticket #2797: added support of .gem (rubygems) files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-30 11:19:56 +04:00
Andrew Borodin e281ca2890 Fixed regular expressions in Syntax file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-29 17:34:04 +04:00
Andrew Borodin e63fc08b2a Ticket #2774: mc.ext: comment out the empty rule for texinfo.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-07 16:50:32 +04:00
Sergei Trofimovich ea82ca42ed ebuild.syntax: added 'pushd' and 'popd' keywords
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-04-01 01:21:35 +03:00
Sergei Trofimovich 539f92cd97 misc/ebuild.syntax: added 'REQUIRED_USE', '[[' and ']]' as keywords
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-03-23 19:03:31 +03:00
Victor Homyakov 32f3a457f7 Ticket #2748: wrong message in menu item "Delete tagged files if a copy exists in the other directory". 2012-03-19 11:07:43 +03:00
Sergei Trofimovich a742521198 misc/syntax/cabal.syntax: added some cabal-1.8+ keywords
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-03-09 21:16:28 +03:00
Ilia Maslakov 0a192e51c7 added scroll indication
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-02-21 22:20:27 +04:00
Ilia Maslakov d94da7d5c3 Ticket #2731 (scroll long filenames in panel)
added bindings 'ScrollLeft', 'ScrollRight' for scroll long filenames in panel

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

    some code & typo fixes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-21 22:20:25 +04:00
Ilia Maslakov 7a4a7576b8 modified mc.lib, added alt-shift-arrows
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-02-09 13:44:32 +04:00
Ilia Maslakov 5e688eec94 Ticket #2465 (dynamically resize panels)
added new panel's action to dynamically resize panels:
    SplitEqual - make equal size of panels
    SplitMore - enlarge left/up panel
    SplitLess - enlarge right/down panel

changed misc/mc.keymap.default, misc/mc.keymap.emacs

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-02-09 13:44:32 +04:00
Artem S. Tashkinov e60aca5d1a Ticket #2703: Simplify mc.menu - remove LZMA|LZ and change p7 to 7z
* LZMA is now considered unsupported and outdated, let's get rid of it.
 * There's no p7 archiver format, let's change it to "7z".

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-01-13 11:14:16 +03:00
ctmp1 57f0240522 Ticket #2645: improve djvu support.
Open of djvu files with 'djv' extension.
View action for djvu with text layer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-07 13:44:01 +03:00
Nerijus Baliunas 7345058ba5 Ticket #2702: improve video support.
Open .m4v and .ts files as video ones.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-06 14:32:16 +03:00
idispatch 2862589aac Ticket #2708: Added ActionScript file syntax highlighting
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-28 17:18:04 +03:00
S. Melnikov a3ddfd14ea Ticket #2105 (mcview backward search)
Until 4.7 '/' was forward and '?' backward search.
    In current releases both keys are bound to ViewSearch
    so one must manually choose Backwards option in the dialog.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-12-28 17:30:07 +04: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
Sergei Trofimovich a4fbaf95ff syntax/lua: highlight '\\' escape (and similar) properly
The following example breaks highlighting to the end of file:
    local a = "\\"
    local b = 1
    ...

Added escape handling for simplest cases both for
single-quoted and double-quoted literals:
    '\\', '\n' (and similar), '\d', '\dd', '\ddd'

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2011-11-16 08:44:33 +03:00
Egmont Koblinger 14973a6b02 Ticket #2640: sand256 skin update
Seems that the previous patch was incomplete. Especially the "Delete file?" dialog
sucks because the colors of the Yes and No buttons are the same, it's only the mouse
cursor that shows which one is active.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-11-08 10:46:31 +03:00
SZABÓ Gergely 0865031bea Lex/Flex sources (extension .l) handled by yxx.syntax. Yacc/Bison syntax completed with all symbols. 2011-10-31 23:09:19 +03:00
Ilia Maslakov 48460f6ca1 changed mc.keymap 2011-10-27 15:59:24 +04:00
Egmont Koblinger 57de35ceb7 Ticket #2640: sand256 skin update.
When reorganizing skins, two values in the sand256 skin got lost: the
header is boring black instead of interesting red, and the header in
viewer/editor is not highlighted.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-23 10:45:53 +04:00
Egmont Koblinger 0ab3044665 Ticket #2641: URL inside the xoria256 skin definition file is obviously broken.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-23 10:38:35 +04:00
Slava Zanko 0138645541 Ticket 1551: Update GPL version from 2 to 3
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-18 14:08:34 +03:00
Andrew Borodin 16664f9bd0 Added the 'c' hotkey for 'Compile and link current .c file' item of user menu.
Menu item w/o hotey is not shown in menu.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin 23427deac6 keymap files: unification of Fxx keys: move to lower case.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin d8277f2ed9 Ticket #2586: broken extended keybindings in editor.
ctrl-x shortcut is used in default keymap twice:
  * as shotrcut for WordRight action (see 0908c8baea);
  * as prefix for extended keybindings.

To fix the second issue, shortcut for editor.ExtendedKeyMap is
unassigned now because extended shortcuts are unused in editor in
default keymap.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-26 10:30:53 +04:00
Andrey Rahmatullin 607c6a21dc Ticket #2583: misc/mc.ext.in: added 3gp video.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-28 11:29:33 +04:00
Andrey Rahmatullin c119682e43 Ticket #1689: mc.ext: use "include" for $EDITOR entries
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-17 16:40:13 +04:00
Ilia Maslakov e8a0781934 Ticket #2467 (gitfs)
added new extfs plugin - gitfs
    used prefix [git] for identification as a #changesetfs

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-16 13:10:01 +00:00
Mikhail S. Pobolovets 2b10373e02 Ticket #2531: wrong rules precedence
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2011-07-14 12:04:07 +03:00
Mikhail S. Pobolovets ee001dd96f Added new keyword to Ruby syntax
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2011-07-12 11:45:41 +03:00
Matthieu Crapet c29e0eaa3d Ticket #2566: .mts file is handled as videofile.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-08 11:34:28 +04:00
Mihail Slobodyanuk 5fe72669f7 Ticket #2562: view torrent file using ctorrent.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-08 11:21:04 +04:00
Ilia Maslakov 125e4cb86b Ticket #2534 (mark files by shift-left/shift-right)
added actions for mark files in the panel by shift-left/shift-right

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-06-24 09:23:08 +00:00
Slava Zanko bba132381e vfs_path_to_str() now return URL string instead of old representation
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Jan Engelhardt d78cbcac15 Ticket #2524: added mc-4.6 skin.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-04-09 18:20:36 +04:00
Andrew Borodin 4519c85134 Fix of DLG_ACTION handling in interactive help.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-30 16:17:16 +04:00
Andrew Borodin 3e35200517 Fix of DLG_ACTION handling in diff viewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-30 16:17:16 +04:00
Andrew Borodin 9ae7a28bf8 Fix of DLG_ACTION handling in viewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-30 16:17:16 +04:00
Andrew Borodin 50de02cfe4 Unification of keybinding names.
Most of keybind names are changed to unify that names.
Details see in doc/keybind-migration.txt file.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-20 19:26:08 +03:00
Andrew Borodin 68a8745f6d Ticket #2511: simplification and unification of keybinding names.
Added doc/keybind-migration.txt file to describe new keybinding names
used in mc.keymap.* files in 4.8.x series.
Cosmetics: reordering of keymap section declarations to provide identical
order totally in the source tree.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-20 19:26:08 +03:00
Ilia Maslakov c7638e1a75 replaced #interactive to #silent into misc/macros.d/*
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-03-17 16:17:03 +00:00
Ilia Maslakov bc3c848ab1 Added two macro examples:
* macro.6.sh - execute selected block
    * macro.7.sh - delete trailing whitespaces

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-03-07 14:06:38 +03:00
Ilia Maslakov 04d54931d0 added examples
added rules for misc/macros.d/*. in the process of installation, example scripts will be copied into share/mc/examples/macros.d

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-03-03 20:48:31 +00:00
Ilia Maslakov 83177cfc16 added a new action "Record and Repeat commands", added menu entry (Record/Repeat actions) for this.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

some fixes

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

and one more fix

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-03 20:45:07 +00:00
Lee Bigelow 15458a0ff5 Ticket #1791: a nice dark skin created by Lee Bigelow (update)
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2011-02-20 23:57:20 +01: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
Ilia Maslakov afed48a44a Ticket #2499 (action to the mark current word)
added action CK_Mark_Word to the mark current word
    changed double-click the mouse handler of the editor

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-02-17 21:38:06 +00:00
Andrew Borodin b8b0abd579 Ticket #2485: added -C key to nm in View action for static libs.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-02-05 16:54:56 +02:00
Slava Zanko 5b167ccc9e fail back to standard skin if 256-colors skin used on non256 colors terminal
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-24 15:46:10 +02:00
Slava Zanko 71e70a017f renamed cedit.menu to mcedit.menu
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-20 17:44:04 +02:00
Slava Zanko 4e02246c6f skin xoria256.ini: changed version requirements
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-13 11:28:36 +02:00
Alexander Glyzov 331a7c1711 Added 'Xoria256' skin.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-12 14:29:44 +02:00
Andrew Borodin 90de8381e4 Added dark skin to the list of skins.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-11 14:25:49 +03:00
Ilia Maslakov 728596871e added cedit.menu entry "Sort selection"
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-01-06 20:07:59 +00:00
Ilia Maslakov 842e27763b added 2 new user menu entries - "Upper case", "Lower case".
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-01-06 16:51:07 +00:00
Ilia Maslakov 6832b8e7e9 binded EditRedo on alt-r
added entry Redo into editor menu

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-12-30 21:23:43 +00:00
Andrew Borodin da2c82e8d3 Ticket #2170: color of panel header cannot be set in the command line
...using --colors option.

Grammar in default skin description.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-29 13:58:28 +03:00
Egmont Koblinger 6582b89c63 Added skin for demonstrate how to use 256 colors in mc
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-12-29 12:04:56 +02:00
nmk 5ec76f0af3 Ticket #1800: minor enhancement and fix for mc.ext
...for .so libraries and ELF objects.

.so libraries have the higher priority of extansion handling over ELF
objects.
Added -C -D options to nm utility for .so libraries.
Added -C option to nm utility for ELF objects.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-14 16:25:33 +03:00
Ilia Maslakov 8def8ec662 Ticket #2427 (cython syntax highlighting)
added rules for cython syntax highlighting

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-12-04 14:58:14 +00:00
Ilia Maslakov 5267c9dcc3 added new skin 'dark'
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-12-04 11:45:03 +00:00
Ilia Maslakov f153e1ad29 renamed:
* PanelCtrlNextPage into PanelGotoChildDir
    * PanelCtrlPrevPage into PanelGotoParentDir

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-12-04 09:06:06 +00:00
Ilia Maslakov 2690d2d9f5 Ticket #2375 (do cd .. if command line is empty)
New keybinding "PanelSmartJumpUp" for the jump to the parent directory if command line is empty. Not defined by default.
    This binding maybe used for bind 'Backspace' as hotkey for 'cd ..' (only if command line is empty).

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-12-04 09:05:07 +00:00
Andrew Borodin 680b9a8220 Ticket #2432: backspace key doesn't work in input lines.
Also added default bindings for C-d and C-h keys in editor and input
lines.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 11:30:34 +03:00
Andrew Borodin 380d9bd885 Ticket #2171: colors for popup menu:
... for menu items, selected menu item and for menu title.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 09:55:59 +03:00
Slava Zanko 55b4590664 Ticket #2432: delete and backspace key behaviour broken in master
Including wrong separator ',' instead of ';' in /etc/mc/mc.keymap and /etc/mc/mc.keymap.default
(commit b1bd2e2673) causes that mcedit ignores not only ctrl-h and
1;1Cctrl-d keys but also ordinary delete and backspace! This makes mcedit mostly unusable.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-26 14:31:05 +02:00
Slava Zanko b1bd2e2673 Removed hardcoded actions on ctrl-d and ctrl-h hotkeys. Now these hotkeys defined in keymap file.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Slava Zanko fcc98371d6 Removed unneded utility mcmfmt
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Andrew Borodin 3e7d76eb13 Ticket #2197: added new color for status bar
...and added missed colors for button bar.

Updated EN and RU man pages.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-22 16:07:17 +03:00
Ilia Maslakov 8d25877d9b updated mc.keymap.default, mc.keymap.emacs, added new action - 'InputXCut'
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-11-05 13:26:18 +00:00
Andrew Borodin 0908c8baea Ticket #2404: added forgotten shotrcuts of mcedit.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 21:31:24 +03:00
Andrew Borodin 245f465d6e Install mc.charsets into /usr/share/mc instead of /etc/mc.
Renamed CHARSETS_INDEX macro to CHARSETS_LIST.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:15:37 +04:00
Andrew Borodin fed3d099c3 Install mc.lib into /usr/share/mc instead of /etc/mc.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:15:37 +04:00
Andrew Borodin 51f28528f6 Ticket #1424: install some files into /usr/share/mc instead of /etc/mc.
RPMLint shows the following warnings:
mc.i586: W: conffile-without-noreplace-flag /etc/mc/Syntax
mc.i586: W: conffile-without-noreplace-flag /etc/mc/mc.lib
mc.i586: W: conffile-without-noreplace-flag /etc/mc/mc.charsets

First step: install Syntax into /usr/share/mc instead of /etc/mc.
This also fixes the impossibility of editing of system-wide Syntax file
in mcedit under root (menu Options->Syntax file->System Wide).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:15:37 +04:00
Slava Zanko f53ed400fb Merge branch '2170_separate_colors'
* 2170_separate_colors:
  Newly added colorpair names now described in man-page
  Ticket #2170: Color collisions
2010-10-13 13:23:25 +03:00
Egmont Koblinger aa9cb6d320 Ticket #2170: Color collisions
Midnight Commander's color/skin engine often reuses the same color definition for multiple elements on the UI.
This unnecessarily limits the possibilities when playing with colors.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-13 13:21:10 +03:00
Slava Zanko 1d922f3c75 Ticket #2177: mcdiff shortcut
Changed keymap for CmdDiffView command from 'ctrl-y' to 'ctrl-d'

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-10-12 13:09:48 +03:00
Mikhail S. Pobolovets dbf74727ca Ruby syntax fix
* added highlight for ruby symbols

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-09-13 09:54:14 +03:00
Mikhail S. Pobolovets d9ac6384b5 Ruby syntax update
* fixed include? keyword
    * fixed $ in the end of regexps

Valid highlighting of regexps can't be done with syntaxcolor.
Ruby uses '/' to divide numbers and for defining regexps.

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-09-12 20:57:40 +03:00
Mikhail S. Pobolovets 9cd7a04b54 CSS syntax update
* fixed some bugs
    * removed duplicates
    * added some new keywords

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-09-12 20:26:43 +03:00
Andrew Borodin 67e61510b4 Added bindings for vertical scrolling of interactive help.
check_movement_keys() function is not used now in interactive help.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-01 15:25:59 +04:00
Andrew Borodin b470fb81ce check_movement_keys() function is not used now in viewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-01 15:25:59 +04:00
Andrew Borodin 6b4914b46e Ticket #212: replacement of hardcoded keys in viewer and interactive help.
Added new viewer keybindings instaed of hardcoded keys:
 - for move to top and bottom of file;
 - for horizontal scroll by 10 columns.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-01 15:25:58 +04:00
Andrew Borodin 44d07b20ab Implementation of keybindings for WListbox.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-01 15:20:28 +04:00
Andrew Borodin 2f62fadabb Ticket #212: implemented keybindings for WListbox widget.
Initial step: added description for A1 and C1 keys.
A1 and C1 keybindings are applied to WTree, WInput and WPanel widgets.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-01 15:20:27 +04:00
Andres Farfan 18322a0121 fixed skin - darkfar.ini
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-07-18 07:57:03 +00:00