View previous search results

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
zupermario
Junior Member
Junior Member
Posts: 26
Joined: 2011-04-01, 21:11 UTC

View previous search results

Post by *zupermario »

Hello all,
Is there a way to get the last search result back, without searching again?

I carry out a very long search on many files, then I get the results, feed to listbox to be able to work on the first file resulting from the search (I move it, copy it, delete it, view it, and to do so I use both source/destination sides) and then subsequently I would like to get back the previous search to be able to work on the second result, and so on.

It is not efficient to re-run the same search because it takes a long time.

Is there a method? Couldn't the ALT-F7 panel display the result of the last search again until another search is performed?
Or, couldn't the "go back" and "go forward" buttons also retrace the search results previously sent to the listbox?

Thank you.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6497
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: View previous search results

Post by *Horst.Epp »

Use Shift Feed to listbox.to open the list in a new tab.

You can also use the following buttons after a Feed to listbox
Select all files in the list Ctrl-A and press this button

Code: Select all

TOTALCMD#BAR#DATA
%comspec% /c copy
"%UL" "%T\%B-0_SelectedFiles.txt"
C:\Tools\Wincmd\WCMICONS48.DLL,46
Selected file names to list in target

1
-1
To restore the saved list, put the cursor on it and press this button

Code: Select all

TOTALCMD#BAR#DATA
LOADLIST
%P%N
C:\Tools\Wincmd\WCMICONS48.DLL,31
LoadList from file under cursor

0
-1
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
zupermario
Junior Member
Junior Member
Posts: 26
Joined: 2011-04-01, 21:11 UTC

Re: View previous search results

Post by *zupermario »

Horst.Epp wrote: 2024-02-19, 13:56 UTC Use Shift Feed to listbox.to open the list in a new tab.

You can also use the following buttons after a Feed to listbox
Select all files in the list Ctrl-A and press this button
Wow fantastic! Thank you very much!
User avatar
Dalai
Power Member
Power Member
Posts: 9393
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: View previous search results

Post by *Dalai »

Some other ways to keep the search results in a separate tab:
  • After feeding the search results to the list press Ctrl+T to open a new tab. This duplicates the search results.
  • Press Ctrl+CursorUp to open the directory under the cursor in a new tab in the active panel
  • Press Ctrl+Shift+CursorUp to open the directory under the cursor in a new tab in the opposite panel
  • Press Ctrl+CursorRight (or Ctrl+CursorLeft) to open the directory under the cursor in the opposite panel (active tab)
All points except the first work regardless of search results, i.e. they work also while browsing. If there's a file under the cursor instead of a directory, the directory containing the file is opened and TC will put the cursor onto the file.

There are probably even more ways to keep a tab more or less static.

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
zupermario
Junior Member
Junior Member
Posts: 26
Joined: 2011-04-01, 21:11 UTC

Re: View previous search results

Post by *zupermario »

Dalai wrote: 2024-02-19, 16:24 UTC Some other ways to keep the search results in a separate tab:
👍👍
User avatar
nsp
Power Member
Power Member
Posts: 1806
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: View previous search results

Post by *nsp »

I'm personally using Virtual Panel to keep search results organized in folders. I also have VirtualPanel Scripts using ES on top of everything search to re-populate virtual folder in a click for everyday searches.
I use a temporary file to populate VPanel Folder or directly copying from Populated Search Result to VPanel.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6497
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: View previous search results

Post by *Horst.Epp »

nsp wrote: 2024-02-19, 17:38 UTC I'm personally using Virtual Panel to keep search results organized in folders...
Since we have LOADLIST I stopped using VirtualPanel.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: View previous search results

Post by *petermad »

I use thes em_commands in my extended menu for saving and loading search results

Code: Select all

[em_ext_savelist0]
cmd=SAVESELECTION "%COMMANDER_INI%\..\SAVEDSEARCH.txt"

[em_ext_savelist]
cmd=cm_SelectAllBoth,em_ext_savelist0,cm_ClearAll
menu=Save search in the file SAVEDSEARCH.txt
button=wcmicons.dll,47

[em_ext_loadlist]
cmd=LOADLIST "%COMMANDER_INI%\..\SAVEDSEARCH.txt"
menu=Load search from the file SAVEDSEARCH.txt
button=wcmicons.dll,47
The benefit compared to Horst.Epp's solution is that I avoid using the DOS console.
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: View previous search results

Post by *ghisler(Author) »

Another way to keep the search open would be using "Search in separate process". Then "Feed to listbox" doesn't close the search window and can be used repeatedly.
Author of Total Commander
https://www.ghisler.com
Post Reply