Page 1 of 1
Save Search Results to Clipboard
Posted: 2014-03-21, 15:22 UTC
by AlanC
The search feature is very comprehensive. Yet many times I'll like to work with the list of files it returns. If I search within ZIP files, then Feed-to-List-Box is not available. So there is no way to preserve the results, (other than a screen shot). It would be nice to simply be able to copy the search results listbox to the clipboard and take it from there.

Posted: 2014-03-21, 15:57 UTC
by karlchen
Hello, AlanC.
Are your sure that what you suggest as a future feature is not already possible?
I just tried this:
- went to a folder holding 3 .7z archive files.
- pressed <Alt><F7>.
Search for: places.sqlite (irrelevant, but I knew they were in the archives)
Ticked [X] Search archives.
Clicked [Start Search]
- T.C. found 3 hits, 1 in each archive file.
- Mark any of the filenames and press <Ctrl>C. - No visual or accoustic feedback!
- Opened a text editor and pressed <Ctrl>V.
- Now have a look at the list I found in my editor:
Code: Select all
Z:\host\Data\Backup\Daten\Windows\Firefox\Firefox_places.7z/places.sqlite
Z:\host\Data\Backup\Daten\Windows\Firefox\Firefox_Places_karl.7z/places.sqlite
Z:\host\Data\Backup\Daten\Windows\Firefox\Firefox_Places_Ubuntu.7z/places.sqlite
Is this what you have in mind?
Total Commander 8.51ß3 32-bit + 64-bit on
Windows Server 2008 R2 SP1 64-bit
Kind regards,
Karl
--
Note:
Steps corrected. Do not [feed to listbox] the results found in archives before pressing <Ctrl>C.
Posted: 2014-03-21, 15:59 UTC
by Ovg
If I search within ZIP files, then Feed-to-List-Box is not available.
Not Confirmed! What version of TC do you use????
http://ge.tt/4FGxSMS1?c
Second picture is the result of pressing key "Feed to ListBox "
Posted: 2014-03-21, 16:08 UTC
by karlchen
Hi, Ovg. Hi, AlanC.
Could it be the functionality is unreliable?
Try as I may, my own steps applied to real .ZIP files (not .7z like in my first example) refuse to work.
The clipboard remains empty.
---
No, it answer different from that:
Search results inside archives =>
Do not [Feed to listbox]
But simply click on any filename in the search result list.
Press <Ctrl>C. - No visiual feedback given!
Open editor, paste clipboard content in it by pressing <Ctrl>V.
There you are!
---
Works for .ZIP archives as well as .7Z archives.
---
Will correct the steps in my previous post accordingly.
Karl
--
P.S.:
Ovg, cannot view the screenshots right now. Our proxy blocks anything it considers a filesharing platform.

Posted: 2014-03-21, 16:27 UTC
by Ovg
Hi!
I have try you way. C+A / C-C doesn't work. But C+A and cm_CopyNamesToClip at least works
Posted: 2014-03-21, 16:39 UTC
by karlchen
Hi, Ovg.
By the time you replied I had already corrected my initial steps:
Inside the search result box, pressing <Ctrl>C will copy all search result names into the clipboard.
Tested it several times.
It works.
No matter whether the search included or excluded archive files.
Cheers,
Karl
Posted: 2014-03-21, 16:41 UTC
by Gral
There is enough to press CTRL+C on search results. No need to press CTRL+A.
Posted: 2014-03-21, 16:46 UTC
by Ovg
2karlchen
2Gral
I have just tested. You are both right! It is working. But "Feed to Listbox" is working, too.
Posted: 2014-03-21, 16:49 UTC
by karlchen
The T.C. help on the the search dialogue holds the appropriate explanation:
[quote="Totalcmd.chm - Section "Find files: General""]<Result list> Shows a list of all files found in the current search operation. The details (date, time, size) are shown in the footer because of the limited space. Double click on a file to go to the directory where it is located. To copy the whole file list to the clipboard, click in this window and press Ctrl+C.[/quote]
About [feed to listbox] and copying the list from there:
<Ctrl>A plus <Ctrl>C inside the [feed to listbox] list will only have the desired effect in case the found files are all located in regular folders, but not in case the results have been found inside an archive.
(This was the reason why I had to correct my initial reply.)
Cheers,
Karl
Posted: 2014-03-21, 16:54 UTC
by AlanC
Yes, the above steps seem to work in 8.50. It's still just a little confusing that only one of the items is highlighted, but all are copied. Thanks to all that jumped in on this.
Posted: 2014-03-21, 16:57 UTC
by Ovg
2karlchen
Thank you for useful info!