Commit Graph

10139 Commits

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