[Solved] Can search results display only file names?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
alphonse68
Junior Member
Junior Member
Posts: 33
Joined: 2011-09-26, 13:53 UTC

[Solved] Can search results display only file names?

Post by *alphonse68 »

Hello,
Is there a way to make the Search results not display the path... by means of an option or a toggle/checkbox somewhere?

If it happens to not be possible, I hope you find this useful and maybe it could be a new feature: to be able to select whether to display full paths and file names or just the file names when we click Feed to Listbox. The feature already exists, but only--afaIk--to copy the path &/or file names to the clipboard or to a file.

[I, the OP, removed part of the original post so as to not create confusion]

Thank you.
Cheers.
Last edited by alphonse68 on 2021-03-21, 03:20 UTC, edited 2 times in total.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6981
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Can search results display only file names?

Post by *Horst.Epp »

A realy strange request
If you has misplaced a file then it doesn't make sense at all to get ony the filename in the search results.
That makes no sense as you don't know where the file was placed.
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
User avatar
Dalai
Power Member
Power Member
Posts: 9974
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Can search results display only file names?

Post by *Dalai »

I'm actually stumped. How do you select the correct file among several files with the same name? The path is the only thing differentiating the files from one another. And before you say "the path is in the status bar", that's true, but do you really want to check every file of the ones that have the same name to find the one you want? I seriously doubt that.

BTW: TC can find files that are listed in a text file, so I suggest to make use of that feature; it's definitely better than having to go back and forth between TC's search results and a separate list.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
solid
Power Member
Power Member
Posts: 749
Joined: 2004-08-09, 11:20 UTC

Re: Can search results display only file names?

Post by *solid »

Dalai wrote: 2021-03-20, 21:28 UTCBTW: TC can find files that are listed in a text file, so I suggest to make use of that feature; it's definitely better than having to go back and forth between TC's search results and a separate list.
Damn, didn't know this feature that text file can be used as input for searching.
@pathtofile.txt in the 'Search for'.

Dalai, thx for mentioning it.
alphonse68
Junior Member
Junior Member
Posts: 33
Joined: 2011-09-26, 13:53 UTC

Re: Can search results display only file names?

Post by *alphonse68 »

Hello, Dalai.
Thank you for your comments.

When one does searches using wild cards, the results can be a wide variety of names, not just files with the same name.
When one searches for a specific string or text within files, the results can be an even wider variety of names and extensions.
Since some searches can involve several directories and their subdirectories, the length of the paths can vary by quite a bit, depending, not just on the length of the name of each child directory, but also of how many child directories exist.

Talking about files with the same name, I have met my share of corporate users who are quite capable of creating copies of files each with different modification. Have I had to look at a list of files with the same name and slightly different contents with the wonderful hint, "I don't remember exactly what it says, I just know that it's something like...", and at times they have been looking for a different part of the doc, it's just that that is what they remember it says.

Myself, when I write code, I can save tens of files with the same name but different date & time as part of the name because I am testing something or because I decided or am asked to considerably change something. Again, search in files with the "same" name that I saved some days ago before I made certain changes that I need to undo, until I find the one I need? Yes, often.

Cheers
User avatar
tuska
Power Member
Power Member
Posts: 4060
Joined: 2007-05-21, 12:17 UTC

Re: Can search results display only file names?

Post by *tuska »

2alphonse68

Create a Custom columns view - e.g. Name: Standard_view

Code: Select all

[=tc.size.bytes]
[=tc.writedate.D.M.Y h:m:s]
[=tc.attributestr]
Create View mode(s): [See also my signature...]

View mode <default>
Columns view: Full
Sort order: Name

View mode - "Standard_view"
Colums view: # Standard_view (# =No of your "Custom columns view")
Sort Order: Name

Call up View...
  1. EDIT: Custom columns view: Manually -> Button with command: cm_SrcCustomView#   (# =No of your "Custom columns view")
  2. View mode: Manually -> Button with command: cm_SrcViewModeList Standard_view
  3. View mode: Automatically -> Auto Switch Mode: Rule "S: Search result", Set this mode: "Standard_view" (Name of your View Mode)
Option: BUTTON to reset View Mode to <Default>

Code: Select all

TOTALCMD#BAR#DATA
cm_SrcViewMode0,cm_SrcAllFiles,cm_50Percent,cm_RereadSource,cm_rereadsource 1

wcmicons.dll,86
cm_SrcViewMode0,cm_SrcAllFiles,cm_50Percent,cm_RereadSource,cm_rereadsource 1|View mode <Standard>: cm_SrcViewMode0|Active panel!|-|cm_RereadSource Ctrl+R|-|cm_rereadsource 1 )|cm_rereadsource 2 )|cm_rereadsource 3 ) <as of TC 9.50 --> see: HISTORY.TXT!>

0
-1


Windows 10 Pro (x64) Version 20H2 (OS build 19042.868) | Overview: View Mode | Auto Switch Mode | Custom columns view
TC 10.00b2 x64/x86 | 'Everything' 1.5.0.1246a (x64)
Last edited by tuska on 2021-03-20, 23:30 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 16034
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Can search results display only file names?

Post by *petermad »

2Horst.Epp
That makes no sense as you don't know where the file was placed.
2Dalai
How do you select the correct file among several files with the same name?
When Fed to listbox the status bar below the Search result panel shows the file name with full path - at least until one or more files are selected. Same thing for Branch view btw.

2alphonse68
As tuska writes, just use a Custom columns view - then the files will be shown according to that - and the full path is stiull shown in the status bar.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Dalai
Power Member
Power Member
Posts: 9974
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Can search results display only file names?

Post by *Dalai »

petermad wrote: 2021-03-20, 22:35 UTCWhen Fed to listbox the status bar below the Search result panel shows the file name with full path - at least until one or more files are selected.
I know. Hence my question
do you really want to check every file of the ones that have the same name to find the one you want?
In other words: You have to go through every single file in the search results to find the one you want/need. Sounds like unnecessary and tedious work to me. It would make much more sense to show the path in a dedicated column, so the path is still obvious and can even be sorted by.
Same thing for Branch view btw.
True, but the "results" might be more limited, depending on the search parameters and (depth of the) directory structure, of course.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
alphonse68
Junior Member
Junior Member
Posts: 33
Joined: 2011-09-26, 13:53 UTC

Re: Can search results display only file names?

Post by *alphonse68 »

Hello.
Thank you, Tuska, for so generously providing me with a very complete solution. Thank you, Peter, for your advice as well.

I will honestly say that Custom Columns didn't cross my mind simply because I have never used them, and by the looks of it, they provide a much better solution than what I asked about, which only provides what Copy Selected Names to Clipboard does.

Have a great Sunday!
Cheers
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6981
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Can search results display only file names?

Post by *Horst.Epp »

petermad wrote: 2021-03-20, 22:35 UTC 2Horst.Epp
That makes no sense as you don't know where the file was placed.
2Dalai
How do you select the correct file among several files with the same name?
When Fed to listbox the status bar below the Search result panel shows the file name with full path - at least until one or more files are selected. Same thing for Branch view btw.

2alphonse68
As tuska writes, just use a Custom columns view - then the files will be shown according to that - and the full path is stiull shown in the status bar.
The status line display is of no big help as you can't sort by path without having the path on a column.
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
Post Reply