Saved search does not save files/folders selection

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
zombeek
Junior Member
Junior Member
Posts: 2
Joined: 2025-01-22, 11:23 UTC

Saved search does not save files/folders selection

Post by *zombeek »

Hello,

I often do searches in various source codes, and for that I select several specific folders with project repositories I am interested in in the general develop folder. I tried to save the search, but the current selection is not persisted. On saved search load, I see that the "Only search in selected directories/files" is checked and cannot be unchecked, but nothing is actualy searched/found.

Please feel free to categorize as new feature proposal if this is not an actual bug.

Best regards,
Lukáš Soukup
Last edited by zombeek on 2025-01-23, 11:07 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50471
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Saved search does not save files/folders selection

Post by *ghisler(Author) »

Sorry, this isn't currently planned. It would have to be done in an external file, and you can already do this now:
1. Save the selection to file
2. In the search, put the following in the "Search in" field:
@c:\path\filelist.txt

Moderator message from: ghisler(Author) » 2025-01-22, 15:09 UTC

Moved to suggestions
Author of Total Commander
https://www.ghisler.com
JOUBE
Power Member
Power Member
Posts: 1664
Joined: 2004-07-08, 08:58 UTC

Re: Saved search does not save files/folders selection

Post by *JOUBE »

This function does not actually exist. There is only (but working perfect) the opposite. Search everything and exclude the unwanted directories.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50471
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Saved search does not save files/folders selection

Post by *ghisler(Author) »

2JOUBE
I think zombeek meant the files/directories selected in the main program, for which there is a checkbox "search only selected".
Author of Total Commander
https://www.ghisler.com
JOUBE
Power Member
Power Member
Posts: 1664
Joined: 2004-07-08, 08:58 UTC

Re: Saved search does not save files/folders selection

Post by *JOUBE »

ghisler(Author) wrote: 2025-01-22, 15:18 UTC 2JOUBE
I think zombeek meant the files/directories selected in the main program, for which there is a checkbox "search only selected".
That's clear, "the current selection is not persiste". But to have a persistent selection, that, what I wrote, does the trick. (You select *.* and after the | you exclude all directories that you don't need: the ones you want remain. And you can save that.)

Once apon a time I make a suggestion about this issue in a similar form.
zombeek
Junior Member
Junior Member
Posts: 2
Joined: 2025-01-22, 11:23 UTC

Re: Saved search does not save files/folders selection

Post by *zombeek »

ghisler(Author) wrote: 2025-01-22, 15:09 UTC ...
2. In the search, put the following in the "Search in" field:
@c:\path\filelist.txt
...
Thank you, Christian, it does the trick. SInce this is one-time-only preparation step, the only downside is the need to have the file somewhere, but the root folder where I do the searches seems fine.

I fiddled a bit more with the search dialog and found out that I can enter several directories, semilocon separated, into the "Search in" field. Saving this search also works.

Thank you for your support.
Post Reply