How to make the number of levels in Find Files persistent

English support forum

Moderators: white, Hacker, petermad, Stefan2

mmm
Member
Member
Posts: 120
Joined: 2020-08-10, 12:32 UTC

Re: How to make the number of levels in Find Files persistent

Post by *mmm »

Usher,
Do you think you could find a minute or two and clarify?
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: How to make the number of levels in Find Files persistent

Post by *Hacker »

mmm,
I assume it's the "Feed to listbox" button in the Search results window.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: How to make the number of levels in Find Files persistent

Post by *Usher »

Exactly. What is more, you can open more separate "Find file" processes and more TC instances - and use "Feed to listbox" to any TC instance you want.
Andrzej P. Wozniak
Polish subforum moderator
mmm
Member
Member
Posts: 120
Joined: 2020-08-10, 12:32 UTC

Re: How to make the number of levels in Find Files persistent

Post by *mmm »

Usher,
from your message I take it there is no TC manual available.
Thus, I would like you to help me with the following scenario.


- When I select my target folder in the TC Main window and press ALT+SHIFT+F7, the Find Files window opens for the selected folder. As you said, this dialog keeps the number of levels for me.
- Then, I switch panes in the TC Main window and pick a different target folder for search.

Question:
How do I propagate the new target folder to the existing Find Files dialog waiting for me with the preset number of levels?

I need to repeat the process above a hundred times. Thus, looking for persistency of the search depth throughout the entire TC session.



Many thanks,
mmm
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: How to make the number of levels in Find Files persistent

Post by *nsp »

What you could do if you have some AHK, AutoIt... skill is to:
  • create a Hotkey inside TFindFiles like [ctrl]+P or whatever that:
    The goal is to paste Source Path inside Search In Combo Box
    1. sendmessage to TC with command 2029 (cm_CopySrcPathToClip)
    2. sendkey [ctrl]+A
    3. paste clip
    4. Alternative to select all and past is to setText to the ComboBox that have caption (Search in field is the third in child handle list)
    5. ignore last clip
Without scripting, an easy solution is to create a button/hotkey inside TC calling cm_CopySrcPathToClip and paste yourself in search In Field
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: How to make the number of levels in Find Files persistent

Post by *Hacker »

mmm,
I take it there is no TC manual available
Well, there is a comprehensive help file, if that is what you are looking for.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
mmm
Member
Member
Posts: 120
Joined: 2020-08-10, 12:32 UTC

Re: How to make the number of levels in Find Files persistent

Post by *mmm »

I have just hit F1.
Nice. Thx.
If you are referencing something else please let me know.
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: How to make the number of levels in Find Files persistent

Post by *Hacker »

mmm,
That is the one ;)

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
mmm
Member
Member
Posts: 120
Joined: 2020-08-10, 12:32 UTC

Re: How to make the number of levels in Find Files persistent

Post by *mmm »

Usher,
I conclude that the ALT+SHIFT+F7 you suggested does not keep the search depth persistent throughout a TC session.
Let me know if I am wrong.

Many thanks,
mmm
User avatar
white
Power Member
Power Member
Posts: 4595
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: How to make the number of levels in Find Files persistent

Post by *white »

mmm wrote: 2022-06-29, 04:38 UTC I conclude that the ALT+SHIFT+F7 you suggested does not keep the search depth persistent throughout a TC session.
Let me know if I am wrong.
True, that's why the suggestion was to leave that window open throughout a TC session:
Usher wrote: 2022-06-23, 18:26 UTC What about using Alt+Shift+F7 and Find files in a separate process? You can keep that window open throughout a TC session and feed search results to main TC window if needed.
mmm
Member
Member
Posts: 120
Joined: 2020-08-10, 12:32 UTC

Re: How to make the number of levels in Find Files persistent

Post by *mmm »

White,
please check the following scenario:
1. Select a folder and press Alt+Shift+F7
2. Set the search depth
3. Run the search
4. Go back to TC main window

Now,
5. Take a plunge into a subfolder or switch to the other pane
6. Re-activate/re-open the Find files dialog running in the background

The dialog does preserve the depth value, but it does not reflect current path. (??)
If you hit Alt+Shift+F7 again, you will get current path, but lose the depth.

Please let me know if I am missing anything.
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: How to make the number of levels in Find Files persistent

Post by *nsp »

mmm wrote: 2022-06-29, 11:22 UTC The dialog does preserve the depth value, but it does not reflect current path. (??)
If you hit Alt+Shift+F7 again, you will get current path, but lose the depth.

Please let me know if I am missing anything.
This is exactly this each time you relaunch the the Find Dialog you miss latest depth, but have up to date folder !
A good alternative would be that Find dialog would be able to interpret %P %T as the current Source/Target unfortunately even EnvVariable are not understood in the search in field :(
If you accept PowerPro/AHK/... script you could achieve what you want using a single hotkey !
mmm
Member
Member
Posts: 120
Joined: 2020-08-10, 12:32 UTC

Re: How to make the number of levels in Find Files persistent

Post by *mmm »

nsp,
Thanks a lot for your feedback.
And no, I am not interested in AHK scripts.

Most Find Files options are persistent while search depth isn't.
Was it really designed that way intentionally?
User avatar
white
Power Member
Power Member
Posts: 4595
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: How to make the number of levels in Find Files persistent

Post by *white »

mmm wrote: 2022-06-29, 11:22 UTC Please let me know if I am missing anything.
No, you're not missing anything. A separate process is a separate process, seems obvious to me.
mmm wrote: 2022-06-29, 11:52 UTC Most Find Files options are persistent while search depth isn't.
Was it really designed that way intentionally?
Yes.

If I were you, I would make multiple buttons or aliases to start search with certain search depths. You could create a button that opens a subbar as menu where you can select to start search with search depths 1, 2, 3, etc. Or you could define aliases s1, s2, s3 etc. to start search with these search depths.
mmm
Member
Member
Posts: 120
Joined: 2020-08-10, 12:32 UTC

Re: How to make the number of levels in Find Files persistent

Post by *mmm »

white,
I hear you, but no, thanks. I am not into home-made buttons.

Some options in Find Files are persistent, others are not.
Some users are happy with it, others are not.

There is a well-known, simple and widely-used solution in computer world - make it configurable if it makes sense.
Post Reply