1. Search in selected files
------------------------------
Store selected files in list file (similar to %L mechanism). Send list file name to separate search process as parameter.
2. Search in result list
--------------------------
Store found files in list file (similar to %L mechanism). Send list file name to separate search process as parameter.
3. Search on FTP
--------------------
Create new connection if possible
Background search - same functionality as foreground search
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50873
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
The problem with 1+2 is that the user can change the selection after opening the background search dialog, because it isn't modal. The user would expect that TC would search in the modified selection.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
In general I see two different solutions for the problem that a user could alter a selection after the search window has been opened.
Solution idea 1) Actually update the selection in the corresponding search window
I guess this is the solution you dropped?
For this solution there has to be some kind of notification mechanism that informs the search window that the selection has changed. Is this solution impossible or does it require too much effort?
Solution idea 2) Copy the selected files as 'search in' content but don't handle them as current selection.
When starting the copy save the selection in a temp like %L as previously suggested. But use the contents of this file as a source for the 'search in' fields. The search only in selected folder/files checkbox remains disabled (as in the current background search solution).
Possible extensions to this idea:
- In addition a 'load from selection' button could be added as source for 'search in'
- In addtion a load from list could be used as source for 'search in'
I have created a few mockups illustrating two variants of this solution:
http://lefteous.totalcmd.net/tc/ideas/tc_search_background_ideas_v1.png
- The 'search in' field contains all selected items.
- 'load from selection' and 'load from list' in dropdown menu (inspired by multi-rename in the 'search in'. The is also an 'Edit' menu item to edit the list comfortably in an editor or listbox dialog.
The second variant basically works the same but the transferred file is represented in a different way:
http://lefteous.totalcmd.net/tc/ideas/tc_search_background_ideas_v2.png
- The 'search in' field contains the amount of directories and files which matches the selected directories and files. This may work better for a very complex selection. If the user wants to know details where the search takes place the 'Edit' command in the dropdown box helps.
Solution idea 1) Actually update the selection in the corresponding search window
I guess this is the solution you dropped?
For this solution there has to be some kind of notification mechanism that informs the search window that the selection has changed. Is this solution impossible or does it require too much effort?
Solution idea 2) Copy the selected files as 'search in' content but don't handle them as current selection.
When starting the copy save the selection in a temp like %L as previously suggested. But use the contents of this file as a source for the 'search in' fields. The search only in selected folder/files checkbox remains disabled (as in the current background search solution).
Possible extensions to this idea:
- In addition a 'load from selection' button could be added as source for 'search in'
- In addtion a load from list could be used as source for 'search in'
I have created a few mockups illustrating two variants of this solution:
http://lefteous.totalcmd.net/tc/ideas/tc_search_background_ideas_v1.png
- The 'search in' field contains all selected items.
- 'load from selection' and 'load from list' in dropdown menu (inspired by multi-rename in the 'search in'. The is also an 'Edit' menu item to edit the list comfortably in an editor or listbox dialog.
The second variant basically works the same but the transferred file is represented in a different way:
http://lefteous.totalcmd.net/tc/ideas/tc_search_background_ideas_v2.png
- The 'search in' field contains the amount of directories and files which matches the selected directories and files. This may work better for a very complex selection. If the user wants to know details where the search takes place the 'Edit' command in the dropdown box helps.