[TC 10.50RC1] Can't Search only in current dir

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
thomasmolover
Member
Member
Posts: 160
Joined: 2016-12-12, 01:32 UTC

[TC 10.50RC1] Can't Search only in current dir

Post by *thomasmolover »

I search some strings with REGEX in office file, can't Search only in current dir

like this

https://imgur.com/a/417NhhA
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: [TC 10.50RC1] Can't Search only in current dir

Post by *nsp »

It is hard to understand chinese without english description.
Just a guess, if you selected some files from a search or brach-view and then want to find text only on selected, you cannot mix selected file and base folder only using the depth listbox.
You can anyhow add a rule using plugins tab to limit to the current path with [tc.path] [=] [E:\.....\......\erp]
thomasmo
Junior Member
Junior Member
Posts: 81
Joined: 2013-11-04, 01:31 UTC

Re: [TC 10.50RC1] Can't Search only in current dir

Post by *thomasmo »

I want to search some strings in files in a dir without sub-dir, but what ever I selected the depth, the searching would list all files in any depth dir.

Is it the non-westen dir name problem?
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50RC1] Can't Search only in current dir

Post by *petermad »

2thomasmolover
It is because you have enabled the option: "Only search in selected directories/files" (只搜索选定的文件或文件夹) - turn that option off and the "Search in subdirectories: "Current dir only" (仅限当前文件夹)" will work for you.
Last edited by petermad on 2022-06-11, 12:08 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.50RC1] Can't Search only in current dir

Post by *white »

thomasmo wrote: 2022-06-11, 11:43 UTC Is it the non-westen dir name problem?
No, it's because you used the option Only search in selected directories/files.

In your screenshot you circled the "Search in" field. However this field is disabled because you used the option "Only search in selected directories/files". The "Search in" field has no meaning in this case. The "erp" folder is not searched, but the folders you selected in the "erp" folder are searched. These folders are searched 0 levels deep, so it's working perfectly.
Post Reply