Commit Graph

373 Commits

Author SHA1 Message Date
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