Commit Graph

10523 Commits

Author SHA1 Message Date
Yury V. Zaytsev 17a2f71169 Merge branch '2046_find_file'
* 2046_find_file:
  Applied MC indentation policy
  Fixed up several comments
  Optimization: don't process search handlers too often
  Optimization: don't destroy the "Find file" dialog before call "Tree" one
  Content search options can be disabled using "Search for content" checkbox
  Reorganized "Find File" checkboxes
  Take into account the value of the "Search for content" checkbox
  Ticket #2046: Added "Search for content" checkbox to the Find File dialog
2010-11-02 09:34:18 +01:00
Yury V. Zaytsev 267ec33b2a Applied MC indentation policy
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-11-02 09:34:07 +01:00
Yury V. Zaytsev d6f2d82618 Fixed up several comments
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-11-02 09:34:07 +01:00
Andrew Borodin ed5cc99fed Optimization: don't process search handlers too often
Miscellaneous changes:

    * Create search handlers before search session and destroy afterwards.
    * Get rid of goto operator in do_search() functon.
    * Fixed handling of DLG_VALIDATE message.
    * Type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-02 09:34:07 +01:00
Andrew Borodin 6a36a33b33 Optimization: don't destroy the "Find file" dialog before call "Tree" one
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-02 09:34:06 +01:00
Andrew Borodin 8d3bbf3b26 Content search options can be disabled using "Search for content" checkbox
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-02 09:34:06 +01:00
Yury V. Zaytsev e07bb515f3 Reorganized "Find File" checkboxes
Made "Find recursively" and "Search for content" appear the
first, as they are completely logically independent and influence the
way the strings entered in the corresponding fields are used.

"Using shell patterns" and "Regular expression" come next, as
they set a similar property of the fields. Same goes for the "Case
sensitive" and "All charsets" group.

"Skip hidden" and the rest close the show up.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-02 09:34:06 +01:00
Yury V. Zaytsev b68bef2cb6 Take into account the value of the "Search for content" checkbox
If "Search for content" checkbox is enabled, then content_pattern is
initialized as usual. Otherwise, it's forcibly set to NULL.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-11-02 09:34:06 +01:00
Yury V. Zaytsev 1b260e6773 Ticket #2046: Added "Search for content" checkbox to the Find File dialog
This checkbox allows to define whether the "Content" field should be
taken into account or not when performing file search. The checkbox
remembers its state across sessions.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-11-02 09:34:06 +01:00
Andrew Borodin f41dc350ce Merge branch '2404_mcedit_shortcuts'
* 2404_mcedit_shortcuts:
  Ticket #2404: added forgotten shotrcuts of mcedit.
2010-11-02 10:37:35 +03: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
Slava Zanko 5bf5dd170e Update *.po files.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-01 15:59:12 +02:00
Slava Zanko b60f00df0d Merge branch '2396_find_whole_words'
* 2396_find_whole_words:
  Some optimization of loops in translation functions.
  Create strings with small preallocated sizes.
  mc_search__cond_struct_new_regex_ci_str(): get rid of extra string duplication.
  Minor optimization of translation function arguments.
  Avoid extra-allocation of string while prepare to regexp-search.
  Removed mc_search_cond_t->len (used mc_search_cond_t->str->len instead).
  Fixed bit operations in mc_search_regex__process_append_str()
  Code cleanup for avoid compiler warnings
  Ticket #2396 (Find File "Whole words" search bug)
2010-11-01 15:48:55 +02:00
Andrew Borodin 54a9e72250 Some optimization of loops in translation functions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 15:48:39 +02:00
Andrew Borodin b6fd832a8a Create strings with small preallocated sizes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 15:48:39 +02:00
Andrew Borodin 69cebb9984 mc_search__cond_struct_new_regex_ci_str(): get rid of extra string duplication.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-01 15:48:38 +02:00
Andrew Borodin 5cac8caabe Minor optimization of translation function arguments.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 15:48:38 +02:00
Slava Zanko 601047b6a1 Avoid extra-allocation of string while prepare to regexp-search.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-01 15:48:38 +02:00
Slava Zanko 8d59d66188 Removed mc_search_cond_t->len (used mc_search_cond_t->str->len instead).
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-01 15:48:38 +02:00
Slava Zanko 863f1ec174 Fixed bit operations in mc_search_regex__process_append_str()
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-01 15:48:38 +02:00
Slava Zanko a0d69353e8 Code cleanup for avoid compiler warnings
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-01 15:48:38 +02:00
Slava Zanko 3934c6fb8e Ticket #2396 (Find File "Whole words" search bug)
when searching in files for non english word with "Whole words" set "on" - then nothig will be found
try search word: "время" and also "time" in next example:

'time'
Время
'Time'
'время'

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 15:48:38 +02:00
Andrew Borodin ca34026d46 Merge branch '1894_sort_hidden_files'
* 1894_sort_hidden_files:
  Ticket #1894: sort order should not mix hidden files with others.
2010-11-01 15:48:14 +03:00
Andrew Borodin 4aec2187e1 Ticket #1894: sort order should not mix hidden files with others.
In case sensitive sort, the order of files and directories is following:
hidden dirs
dirs
hidden files
files

In case insensitive mode, directories are mixed and files are mixed too:
dirs (hidden and not are mixed)
files (hidden and not are mixed).

This commit defines the sort order independently of case sensitivity:
hidden dirs
dirs
hidden files
files

Files in UTF-8 locale require special handling: leading dot must not be
processed in g_utf8_casefold() funcion.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 15:02:57 +03:00
Andrew Borodin f8a47dae4c Merge branch '2398_save_as_tilde_expand'
* 2398_save_as_tilde_expand:
  lib/lock.c: applied MC indentation policy.
  Expand tilde while locking and unlocking files.
  (edit_set_filename): expand tilde while setting file name.
  Ticket #2398: tilde is not treated as home directory in editor "Save As" dialog.
2010-11-01 13:56:10 +03:00
Andrew Borodin 8f54b9b0b5 lib/lock.c: applied MC indentation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 13:54:39 +03:00
Andrew Borodin 533567c1a7 Expand tilde while locking and unlocking files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 13:54:39 +03:00
Andrew Borodin 4c40d57508 (edit_set_filename): expand tilde while setting file name.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 13:54:39 +03:00
Andrew Borodin 8088fe9b66 Ticket #2398: tilde is not treated as home directory in editor "Save As" dialog.
(edit_get_save_file_as): return file name with expanded tilde.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 13:54:39 +03:00
Martin Zoubek 9561550d6e l10n: Updated Czech (cs) translation to 100%
New status: 1094 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-10-31 09:24:52 +00:00
Ilia Maslakov fa5eaac162 Merge branch '2268_FISH_hide_panels_before_connect'
* 2268_FISH_hide_panels_before_connect:
  replace print_vfs_message to printf
  Declarations of use_dash() and rotate_dash() were moved form lib/util.h to src/layout.h.
  Apply code identation policy.
  fish.c: some fixups.
  Split function fish_open_archive_int() to fish_open_archive_pipeopen() and fish_open_archive_talk().
  Ticket #2268 (FISH: hide panels before connecting)
2010-10-28 13:39:23 +04:00
Ilia Maslakov 88dc2e93bd replace print_vfs_message to printf
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-10-27 18:12:02 +04:00
Andrew Borodin 8be556abc5 Declarations of use_dash() and rotate_dash() were moved form lib/util.h to src/layout.h.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-27 18:10:50 +04:00
Ilia Maslakov 8b46518619 Apply code identation policy.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-10-27 18:10:50 +04:00
Andrew Borodin 0a5f93eeb5 fish.c: some fixups.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-27 18:10:50 +04:00
Ilia Maslakov 3cef64306e Split function fish_open_archive_int() to fish_open_archive_pipeopen() and fish_open_archive_talk().
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-10-27 18:10:50 +04:00
Ilia Maslakov 3ba4abac41 Ticket #2268 (FISH: hide panels before connecting)
FISH: now hide the panel before connecting.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-27 18:10:49 +04:00
Slava Zanko 4716606c26 Merge branch '2327_cant_put_question_mark'
* 2327_cant_put_question_mark:
  Ticket #2327: Can't put ? into a new name.
2010-10-27 14:07:39 +03:00
Denys Vlasenko 12891835f4 Ticket #2327: Can't put ? into a new name.
The bug is caused by extra "continue" statement in case '*'/case '?' branch.
As a result, \ is added to converted string, but following N is not.
Example: when one renames many files using "*" to "a*z", "a*z" gets converted to "a\z" instead of correct "a\1z"

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-10-27 13:48:32 +03:00
Jake Li 1326e2768e l10n: Updated Chinese (China) (zh_CN) translation to 100%
New status: 1094 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-10-26 04:53:41 +00:00
rezso a6f571214f l10n: Updated Hungarian (hu) translation to 100%
New status: 1093 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-10-25 20:56:31 +00:00
rezso ab61aeecf3 l10n: Updated Hungarian (hu) translation to 100%
New status: 1093 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-10-25 20:50:42 +00:00
rezso 6e75630790 l10n: Updated Hungarian (hu) translation to 100%
New status: 1093 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-10-25 18:54:22 +00:00
Andrew Borodin ed89a340c4 Merge branch '1424_non_config_files'
* 1424_non_config_files:
  Fixed file list in RPM spec.
  Install help files into /usr/share/mc/help instead of /usr/share/mc.
  Install hint files into /usr/share/mc/hints instead of /usr/share/mc.
  Load locale-specific info (help and hints) from /usr/share/mc only.
  Reimplemened codepages storage using GPtrArray.
  Install mc.charsets into /usr/share/mc instead of /etc/mc.
  Minor optimization of [Special dirs] handling.
  Install mc.lib into /usr/share/mc instead of /etc/mc.
  Ticket #1424: install some files into /usr/share/mc instead of /etc/mc.
2010-10-19 18:37:57 +04:00
Andrew Borodin 84f8ae790f Fixed file list in RPM spec.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:25:59 +04:00
Andrew Borodin 185d5fc359 Install help files into /usr/share/mc/help instead of /usr/share/mc.
Optimisation of language-specific help file creating.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:25:59 +04:00
Andrew Borodin 280194ec15 Install hint files into /usr/share/mc/hints instead of /usr/share/mc.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:25:59 +04:00
Andrew Borodin 9636ca2583 Load locale-specific info (help and hints) from /usr/share/mc only.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:25:59 +04:00
Andrew Borodin bfbac0c5d8 Reimplemened codepages storage using GPtrArray.
Added capability to load codepage list from /usr/share/mc/mc.charsets
and /etc/mc/mc.charsets and merge them then.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:25:53 +04: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