Dear TC users and devs,
I would like to solve the following search and selection issue:
I searched for duplicates in a specific directory and I got a list of files that I fed into the listbox. Now I would like to select all the files (among these duplicates) that are placed under the directory "older_files", after I selected them I delete those files. Until now I do the following: I am working myself through the listbox and reading the full file-paths and at each (second) line I have to make a decision to select or not to select (for deletion later). Now I am aware about the option to find file only in a certain directory:
older_files\ *.pdf
but this search pattern highlights all the files in the listbox. I am positive that every other file is outside the mentioned example "older_files". The awaited result is that only every other file will be selected and highlighted.
EDIT: The search pattern
blah-blah-blah\ *.pdf
highlights all PDFs independent of their location (unexpected; expected no match)
The search pattern (with intentional mistake in the extension)
blah-blah-blah\ *.pdg
No match found (expected)
Could you please somebody confirm me this behavior?
Cheers,
M
Select files in listbox withspecific directory in their path
Moderators: Hacker, petermad, Stefan2, white
Hi ackuxacky,
I can confirm the behaviour. It seems that the selection pattern uses an OR operator on the Listbox results. Maybe the use of a path in the selection box does not work as expected.
However, there is an easy way to achieve what you want:
- Use the '+' for making a selection on your results
- Use Define button, this starts another search
- Search for *.pdf in General tab
- In plugins tab set TC path contains older_files
- Save this search under some name
- Apply the selection using the saved search (its name contains >)
Of course you can always adapt the saved search (like use all files instead of only *.pdf).
HTH,
Regards, EricB
I can confirm the behaviour. It seems that the selection pattern uses an OR operator on the Listbox results. Maybe the use of a path in the selection box does not work as expected.
However, there is an easy way to achieve what you want:
- Use the '+' for making a selection on your results
- Use Define button, this starts another search
- Search for *.pdf in General tab
- In plugins tab set TC path contains older_files
- Save this search under some name
- Apply the selection using the saved search (its name contains >)
Of course you can always adapt the saved search (like use all files instead of only *.pdf).
HTH,
Regards, EricB