* 2366_find_ignore_dirs:
Move rotating dash to new function
Unification of invalid filename skip.
Optimization: ret rid of select_item() call
Fix of directory ignorance in file find engine.
Ticket #2366: ignore_dirs does not work while file searching.
Refactoring: reimplement find_ignore_dirs as sorted array of strings.
Handling value of ignore_dirs like "/foo::/bar/:".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2393_disable_puts_to_clipboard:
updated mc.keymap.default, mc.keymap.emacs, added new action - 'InputXCut'
Fixed highlighting in command line (was broken: aa9cb6d320)
Ticket #2393 (no put removed text into clipboard)
no more put removed text into clipboard. when doing CK_InputKillWord, CK_InputBackwardKillWord
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
* WInput routines: get rid of one-line functions.
* added CK_InputClearLine handler. Now CK_InputClearLine - clear command line,
CK_InputKillLine - clear command line from cursor to the EOL.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Previous solutions have broken one of the viewer features (http://www.midnight-commander.org/ticket/1778)
What suggest is fixing PgDn in a way, that it switches to one-line mode after EOF and add a check to ensure,
that at least one last line stays visible (4.7.1 behaviour of end/pgdn was irritating indeed).
With this patch, PageDown at the last page scrolls file line by line instead of entire page.
This is feature, not a bug. :)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* 2407_find_file_segfault:
Some fixes in EN and RU man pages.
Change hotkey for "Search for content" and "All charsets" checkboxes
Ticket #2407: crash of mc when chdir to find file.
Typing 'u' in "User defined mode" input line, the "User defined"
radio-button is checked instead of putting the 'u' letter
into the input line.
Bug was introduced in 80d34ca625.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 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
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>
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>
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>
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>
* 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)