Replacing TC's Search
Moderators: Hacker, petermad, Stefan2, white
Replacing TC's Search
TC enables you to replace the built-in file comparison function with external tools (via CompareTool=) - is there a similar function for search?
I find the TC search function (Alt+F7) does not quite meet my needs, and I want to replace it with an external tool that does (Agent Ransack). The idea is that I want Agent Ransack to launch when I hit Alt+F7 (instead of TC's internal search), and I want TC to pass to Agent Ransack the folder path that I am currently in (what TC's search calls "Search In").
Is this possible at all?
Thanks.
I find the TC search function (Alt+F7) does not quite meet my needs, and I want to replace it with an external tool that does (Agent Ransack). The idea is that I want Agent Ransack to launch when I hit Alt+F7 (instead of TC's internal search), and I want TC to pass to Agent Ransack the folder path that I am currently in (what TC's search calls "Search In").
Is this possible at all?
Thanks.
Go to Options -> Misc, select the hotkey you need (Alt+F7). The Command field says "Default command (no remapping)", click on the magnifying glass icon and click on usercmd.ini. Click on New..., add a name, and then in the "Change user command" type the path of the program, add 'd "%P"' (without the single quotes) to the Parameters, and fill in the other fields implicitly. Click OK twice, and click on the green tick icon.
Last edited by tpr on 2011-10-16, 08:01 UTC, edited 1 time in total.
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
A number of search tools I employ have a copy selection to clip (full paths, or just file names). What TC is missing, and has been requested multiple times, is the ability to generate a Virtual File list (like TC already does when you feed a search result to ListBox).
If TC would allow on-the-fly virtual listboxes, one could create them from clipboard or text files (generated from CMD batch) or numerous other ways. It would be extremely useful.
If TC would allow on-the-fly virtual listboxes, one could create them from clipboard or text files (generated from CMD batch) or numerous other ways. It would be extremely useful.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
- fabiochelly
- Power Member
- Posts: 603
- Joined: 2003-02-05, 12:03 UTC
- Location: Rambouillet, France
This doesn't work beacause Ransack doesn't handle directories containing a trailing backslash.
Currently, I have to use %p instead of %P.
Is there a way to send a directory without a trailing backslash?
Currently, I have to use %p instead of %P.
Is there a way to send a directory without a trailing backslash?
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
- fabiochelly
- Power Member
- Posts: 603
- Joined: 2003-02-05, 12:03 UTC
- Location: Rambouillet, France
I found a way to do it:
In fact, Ransack treats the trailing backslash as an escape for the quotes.
So I just had to add an extra bacsklash to make it work:
Parameters: -d "%P\"
And it works fine!
By the way I'm using Ransack only beause of the contents viewer which allows me to see where occurences has been found inside each file. It would be great to integrate a content viewer into Total Commander (like with FreeCommander).
In fact, Ransack treats the trailing backslash as an escape for the quotes.
So I just had to add an extra bacsklash to make it work:
Parameters: -d "%P\"
And it works fine!
By the way I'm using Ransack only beause of the contents viewer which allows me to see where occurences has been found inside each file. It would be great to integrate a content viewer into Total Commander (like with FreeCommander).
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
- ghisler(Author)
- Site Admin
- Posts: 50937
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
- fabiochelly
- Power Member
- Posts: 603
- Joined: 2003-02-05, 12:03 UTC
- Location: Rambouillet, France
Thank you, appending a dot works too.
For my suggestion, is it possible to add to your wishlist the ability to see the content of files (with the searched text in bold) in TC results window?
For my suggestion, is it possible to add to your wishlist the ability to see the content of files (with the searched text in bold) in TC results window?
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous