Commit Graph

9714 Commits

Author SHA1 Message Date
Slava Zanko
47cdfd6baf Use system function strverscmp() if exists.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-22 11:08:37 +02:00
Slava Zanko
e723926cd0 Height of 'Sort order' dialog window now calculated automatically
relative to count of sort modes.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-22 11:08:37 +02:00
Vladimir Brednikov
3c4221bc40 Ticket #1994: Sort files by version (like strverscmp(3) does)
Suppose we have 3 files with version in their names:
 * file-2.1.tgz
 * file-2.2.tgz
 * file-2.10.tgz

It is impossible to see them in natural order using standard facilities,
they will be sorted in alphabet order:
 * file-2.1.tgz
 * file-2.10.tgz
 * file-2.2.tgz

There was some attempts to fix this. I've picked up the patch by Roland Illig <roland illig gmx de>
(http://mail.gnome.org/archives/mc-devel/2004-July/msg00016.html) and adopted it for today's git snapshot.
It adds "version" option to the sort menu, which uses copy of strverscmp function from glibc.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-22 11:08:37 +02:00
Sergei Trofimovich
5a714baeaf panel search crash due to strescape.h include missing from screen.c (ticket #2044)
> In current git, mc crashes (at least on 64-bit) in Ctrl-S search due to missing
> strutils_escape prototype. To reproduce, pressing Ctrl-S and a few keys is enough.
> Adding #include "lib/strescape.h" to screen.c fixes the issue.

Reported by jmak

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2010-02-21 20:51:26 +02:00
Andrew Borodin
7da1d41508 Merge branch '1967_menu_extra_quoting'
* 1967_menu_extra_quoting:
  Fixed extracting of archive content.
  Ticket #1967: removed extra unneeded quotes in user menu.
2010-02-20 17:32:44 +03:00
Andrew Borodin
83205ba97e Fixed extracting of archive content.
The command "Extract the contents of a compressed tar file"
fails if file name contains spaces.
Fixed duplcated pattern.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-20 17:30:53 +03:00
Andrew Borodin
fda1fba5ef Ticket #1967: removed extra unneeded quotes in user menu.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-20 17:30:53 +03:00
Ilia Maslakov
65fefb39ea Merge branch '2022_wildcard_quicksearch'
* 2022_wildcard_quicksearch:
  show help for quick search.
  Modified Quick search desctiption in man pages.
  cleanup of screen.c: do_search() function (indentation and trailing whitespace)
  do_search(): minor optimization.
  quicksearch: stop appending of chars if no file found
  Ticket #2022 (new quick search)
2010-02-20 11:30:28 +00:00
Andrew Borodin
b52e70637e show help for quick search.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-02-20 11:25:30 +00:00
Ilia Maslakov
8b04fee70c Modified Quick search desctiption in man pages.
Moved Quick search description to separate section.
Added description of a new quick search behavior (for EN and RU
man pages only).

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-20 11:25:30 +00:00
Ilia Maslakov
be05d210c3 cleanup of screen.c: do_search() function (indentation and trailing whitespace)
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-02-20 11:25:29 +00:00
Ilia Maslakov
dde06f0503 do_search(): minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>

    fix trouble with unescaped ',|\\[]{}'

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-02-20 11:25:29 +00:00
Slava Zanko
7e8975e022 quicksearch: stop appending of chars if no file found
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-20 11:25:29 +00:00
Ilia Maslakov
38008d6580 Ticket #2022 (new quick search)
changed quick search engine, now search with wildcards.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-20 11:25:28 +00:00
Marco Ciampa
96fb808442 Updated italian translation. 2010-02-19 15:10:42 +01:00
Kang Bundo
77f7cd80b4 l10n: Updates to Korean (ko) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-19 12:48:49 +00:00
Kang Bundo
3e7d2e3ea4 l10n: Updates to Korean (ko) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-19 12:01:35 +00:00
Ilia Maslakov
2ac8d14473 Merge branch '1998_vertical_selection_fix'
* 1998_vertical_selection_fix:
  Ticket #1998 (EditColumnMark can't go up through newline)
2010-02-19 12:59:44 +03:00
Andrew Borodin
fdddd8c78d Merge branch '2008_pty_buffer'
* 2008_pty_buffer:
  Ticket #2008: reimplemented pty_buffer as static buffer.
2010-02-19 11:30:47 +00:00
Andrew Borodin
163b07d23f Ticket #2008: reimplemented pty_buffer as static buffer.
Reimplemented pty_buffer as static buffer to avoid
MC crashes at exit due to race conditions of destroing
subshell and file manager.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-19 11:30:29 +00:00
Ilia Maslakov
b0236c3e10 Ticket #1998 (EditColumnMark can't go up through newline)
fixed trouble with vertical selection

more detail description:

In block selection mode (shift-F3) it's impossible to go beyond empty line with
up or left arrow (i.e. in top direction).
In general: it's impossible to pass any line shorter than finishing column,
until left arrow is pressed at column 0 (which won't work on empty line), e.g.

xxxCxxx
yyyyy
zzzzzDz

- put cursor in C position,
- press shift-F3,
- go to D position,
- press up arrow twice,
- press left arrow - you're unlocked now and free to go up.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-02-19 12:59:10 +03:00
Kang Bundo
d1ad2645cd l10n: Updates to Korean (ko) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-18 14:47:57 +00:00
Kang Bundo
bbfaa840e9 l10n: Updates to Korean (ko) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-18 14:44:41 +00:00
Andrew Borodin
28640d39ee Merge branch '2018_fptfs_strcpy'
* 2018_fptfs_strcpy:
  Ticket #2018: strcpy() is used for overlaping strings.
2010-02-18 13:22:22 +00:00
Andrew Borodin
68ecccb453 Ticket #2018: strcpy() is used for overlaping strings.
memmove() is used for overlaping strings instead of strcpy().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-18 13:21:25 +00:00
Slava Zanko
25c0ed72e8 l10n: Updates to Russian (ru) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-17 20:47:02 +00:00
Slava Zanko
dfc0980970 l10n: Updates to Russian (ru) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-17 20:37:22 +00:00
Emmanuel Trillaud
5aeed78780 l10n: Updates to French (fr) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-17 19:26:40 +00:00
Emmanuel Trillaud
46ab188ca7 l10n: Updates to French (fr) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-17 19:22:00 +00:00
zoubekm
e3f72ee13e l10n: Updates to Czech (cs) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-17 18:29:28 +00:00
Dimitris Glezos
19ff8a84ff l10n: Updates to Greek (el) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-17 17:10:08 +00:00
Piotr Drąg
6417424423 l10n: Updates to Polish (pl) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-17 13:22:22 +00:00
Slava Zanko
0ebd30cd50 Merge branch '1917_viewer_search_again'
* 1917_viewer_search_again:
  Ticket #1917: again search in viewer
2010-02-15 17:19:38 +02:00
Andrew Borodin
de0cac20e3 Merge branch '1909_extfs_d'
* 1909_extfs_d:
  Replaced hardcoded '/' symbols.
  Fixed file list in RPM spec file.
  2-level extfs plugin structure.
  extfs.ini file is replaced to extfs.d directory.
  Reimplemented work with plugin info.
  Optimization of symbolic link loop protection.
  Optimization of extfs_get_path_from_entry() function.
  Ticket #1909: easy plugable EXTFS VFS.
2010-02-15 16:10:23 +00:00
Andrew Borodin
d5d1589665 Replaced hardcoded '/' symbols.
Symbolic names and GLib functions are used instead of
hardcoded '/' symbols.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-15 16:10:02 +00:00
Andrew Borodin
aa6f8e45e7 Fixed file list in RPM spec file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-15 16:10:02 +00:00
Andrew Borodin
b7d5a5852c 2-level extfs plugin structure.
extfs vfs plugins are read from following places:
1. ~/.mc/extfs.d directory.
2. /usr/libexec/mc/extfs.d direcotry.

Priority of plugins installed in user home directory
is highest. If there are two plugins with same names
exist in user home and system directories, the plugin
from user home is used.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-15 16:10:02 +00:00
Andrew Borodin
ba1d909a7a extfs.ini file is replaced to extfs.d directory.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-15 16:10:02 +00:00
Andrew Borodin
2d43ad1bb4 Reimplemented work with plugin info.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-15 16:10:02 +00:00
Andrew Borodin
6e1c61da0e Optimization of symbolic link loop protection.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-15 16:10:02 +00:00
Andrew Borodin
5b96caa5f0 Optimization of extfs_get_path_from_entry() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-15 16:10:02 +00:00
Andrew Borodin
ad9c1daad8 Ticket #1909: easy plugable EXTFS VFS.
Reimplemented EXTFS VFS to be friendly to package-based
systems. Currently, MC requires to edit extfs.ini file
to add new plugin to MC VFS. After upgrade, all changes
to this files will be lost.

To solve that problem, MC configuration system should
support ".d" pattern.

Initial step: refactoring of current extfs code:
cleanup, type accuracy, indentation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-15 16:10:02 +00:00
Slava Zanko
9e2768be46 Ticket #1917: again search in viewer
Added new confirm box for repeat search from begining of file

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-15 17:17:27 +02:00
Slava Zanko
111750d600 Merge branch '2029_error_in_urar.in'
* 2029_error_in_urar.in:
  urar.in: fixed work with filenames begining with spaces.
  Ticket #2029: Error in supporting rar-archives
2010-02-15 14:40:28 +02:00
Serhiy Storchaka
d45554ffad urar.in: fixed work with filenames begining with spaces.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-15 13:39:30 +02:00
Serhiy Storchaka
786e6f548e Ticket #2029: Error in supporting rar-archives
Contents of rar-archives with filenames contained / \d\d:\d\d / are not listed correctly.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-15 13:06:42 +02:00
Slava Zanko
533edd084a Merge branch '1767_custom_date_format'
* 1767_custom_date_format:
  Ticket #1767: Custom/locale-based date format
2010-02-15 12:32:42 +02:00
Martin Petricek
7c3196b60e Ticket #1767: Custom/locale-based date format
Fixed showing of datetime format in various locales (such as Polish locale)

Added new options in config file:

[Misc]
    ...
    timeformat_recent=%d.%m.%y %H:%M
    timeformat_old=%d.%m.%y %H:%M
    ...

where
    timeformat_recent - for files with mtime between now
                         and "6 moths old" (like "Nov 2 00:56")
    timeformat_old    - for other files (like "Jun 23 2007")

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-15 12:31:47 +02:00
Marco Ciampa
26d2ae5431 Updated italian translation 2010-02-12 19:03:18 +01:00
Piotr Drąg
0a91123913 Updated Polish (pl) translation for master
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-12 16:17:29 +02:00