Commit Graph

9899 Commits

Author SHA1 Message Date
Andrew Borodin
14b61d876c Ticket #2037: minor changes in source tree.
mc.charsets was moved from contrib/ to misc/.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 16:36:05 +00:00
Piotr Drąg
af5dce4ac7 l10n: Updates to Polish (pl) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-24 13:32:20 +00:00
Andrew Borodin
eb4d447e69 Merge branch '1992_mc_startup'
* 1992_mc_startup:
  Fixed variable declarations and added missing includes.
  Ticket #1992: incorrect sturtup of MC with some special paths.
2010-02-24 16:23:25 +00:00
Andrew Borodin
a78115ad8e Fixed variable declarations and added missing includes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 16:22:43 +00:00
Andrew Borodin
45073c35e7 Ticket #1992: incorrect sturtup of MC with some special paths.
Problem description:
  1. Run mc as
     mc /#ftp:user@server
  2. If FTP server asks password, MC shows the password dialog window.
  3. If type the first symbol in input line, MC crashes.

Bug cause:
  MC asks ftp password before initialize of input line keybindings.

Solution:
  Reimplemented MC startup sequence.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 16:22:43 +00:00
Slava Zanko
08cabe95f5 l10n: Updates to Russian (ru) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-24 13:17:27 +00:00
Piotr Drąg
05ede5366e l10n: Updates to Polish (pl) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-24 12:57:58 +00:00
Slava Zanko
2282ec13d8 l10n: Updates to Russian (ru) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-24 11:42:26 +00:00
Slava Zanko
8a7bca06e9 Refresh po-files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-24 13:17:00 +02:00
Andrew Borodin
be1722e11a Merge branch '1972_ncurses_monochrom'
* 1972_ncurses_monochrom:
  Ticket #1972: fixed broken monochrom support in NCurses-based MC.
2010-02-24 13:55:01 +00:00
Andrew Borodin
9b36242128 Ticket #1972: fixed broken monochrom support in NCurses-based MC.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 13:54:32 +00:00
Andrew Borodin
26e167d249 Merge branch '2053_vfs_memleak'
* 2053_vfs_memleak:
  Ticket #2053: fixed memory leak in mc_symlink() function.
2010-02-24 12:08:20 +00:00
Vit Rosin
3770047407 Ticket #2053: fixed memory leak in mc_symlink() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 12:08:01 +00:00
Slava Zanko
e2b2ea2bfa Merge branch '1443_one_dir_copy_progress'
* 1443_one_dir_copy_progress:
  Change param name from 'Layout.progressbar_always_left2right' to 'Layout.classic_progressbar'
  Change progressbar dialog.
  Added ability to show progressbars (when copy files) from right to left.
  Added indication of total BPS and ETA for file operations.
  Widget library: added new widget WHLine.
  Show Count progress bar before copy/move of 1st file,Z not after.
  copy_file_file(): create file copy buffer in stack instead of heap.
  Type accuracy in file operation routines.
  Reimplemented some gotos in panel_operate().
  Ticket #1443: show average copying velocity/ETA for whole operation.
2010-02-24 10:41:27 +02:00
Slava Zanko
02ae5b904e Change param name from 'Layout.progressbar_always_left2right' to 'Layout.classic_progressbar'
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-24 10:40:40 +02:00
Slava Zanko
e1d1e9254d Change progressbar dialog.
* Minimizing dialog;
 * Optimizations of Copy/move progress dialog creation;
 * Added enum for specify dialog type (for copy/move or for delete)
 * Little optimization.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-02-24 10:40:11 +02:00
Slava Zanko
88a374a432 Added ability to show progressbars (when copy files) from right to left.
For activate this, need to add into ini-file:

[Layout]
progressbar_always_left2right=0

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-24 10:37:43 +02:00
Slava Zanko
804ca8e7b0 Added indication of total BPS and ETA for file operations.
* Optimized functions calls (changed return type of all file_progress_show*() functions)
 * Reworked for use global structure FileOpTotalContext
 * Moved declarations of file_progress_show*() functions from fileopctx.h to filegui.h
 * Code for calculate progressbar's variables was moved into function copy_file_file_display_progress()
 * Progressbar for little files now shows always 100% (for visible effect)
 * Added i18n string '< 1 sec'
 * Rework of progress copy dialog

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 10:37:43 +02:00
Slava Zanko
c40c5014b9 Widget library: added new widget WHLine.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 10:37:42 +02:00
Andrew Borodin
334560adac Show Count progress bar before copy/move of 1st file,Z not after.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 10:37:42 +02:00
Andrew Borodin
47abf9282f copy_file_file(): create file copy buffer in stack instead of heap.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 10:37:42 +02:00
Andrew Borodin
159f5fdff1 Type accuracy in file operation routines.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 10:37:42 +02:00
Andrew Borodin
a18c13d0c9 Reimplemented some gotos in panel_operate().
Also some type accuracy and minor optimization were made.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 10:37:42 +02:00
Andrew Borodin
f5beb5b2c6 Ticket #1443: show average copying velocity/ETA for whole operation.
Problem description:
  Let's consider large directory (~4GB) with relatively small files:
  each 1-2MB.
  When I try to copy whole directory I would like to see average
  copying velocity (and ETA) not only per-file (I just don't see
  stats for small files), but for the whole progress.

This commit fixes the issue. Thanks Sergey <sergemp at mail dot ru>
for the initial patch.

Additionally, the minor type accuracy was provided.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 10:37:42 +02:00
Andrew Borodin
48b71733b0 Merge branch '1999_inactive_menu_colors'
* 1999_inactive_menu_colors:
  Ticket #1999: changed color of inactive visible main menu.
2010-02-23 19:02:21 +03:00
Andrew Borodin
492ccbe0ee Ticket #1999: changed color of inactive visible main menu.
Added 'menuinactive' skin item to draw incative visible
main menu.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-23 19:01:56 +03:00
Andrew Borodin
7e0302cd3a Merge branch '2028_hex_search_memleak'
* 2028_hex_search_memleak:
  Ticket #2028: fixed memory leak in mc_search__hex_translate_to_regex() function.
2010-02-23 14:36:15 +03:00
Andrew Borodin
4451e07fab Ticket #2028: fixed memory leak in mc_search__hex_translate_to_regex() function.
Thanks Vit Rosin for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-23 14:35:43 +03:00
Emmanuel Trillaud
b22dd97f7c l10n: Updates to French (fr) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-22 22:53:24 +00:00
Andrew Borodin
476ede51b9 Merge branch '1572_editor_retain_search_options'
* 1572_editor_retain_search_options:
  Retain search options in viewer across viewing session.
  Ticket #1572: retain search/replace options in editor.
2010-02-22 14:59:59 +03:00
Andrew Borodin
2eec76f8c5 Retain search options in viewer across viewing session.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-22 14:59:47 +03:00
Andrew Borodin
63aa191e7a Ticket #1572: retain search/replace options in editor.
Retain search/replace options in editor across editing session.
Type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-22 14:59:46 +03:00
Andrew Borodin
ddf67d8601 Merge branch '1940_verbose_switch_off'
* 1940_verbose_switch_off:
  Ticket #1940: verbose option cannot be switched off.
2010-02-22 12:31:05 +03:00
Andrew Borodin
08b708c5bb Ticket #1940: verbose option cannot be switched off.
How to reproduce:
  1) run mc
  2) press F9
  3) select 'Options' -> 'Configuration...'
  4) switch off '[ ] Verbose operation' option
  5) select '[ Save ]' button and press Enter
  6) in additional, select 'F9' -> 'Options' -> 'Save setup'
  7) exit from mc
  8) run mc again
  9) select 'F9' -> 'Options' -> 'Configuration...'

'Verbose operation' option always switched on.

This commit fixes this behaviour. But in slow terminals,
the value read form ini is forced set to 0.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-22 12:25:08 +03:00
Slava Zanko
a73bfffe40 Merge branch '1994_sort_files_by_version'
* 1994_sort_files_by_version:
  Use system function strverscmp() if exists.
  Height of 'Sort order' dialog window now calculated automatically
  Ticket #1994: Sort files by version (like strverscmp(3) does)
2010-02-22 11:09:59 +02:00
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