Page 1 of 1

Saved search does not save files/folders selection

Posted: 2025-01-22, 11:35 UTC
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

Re: Saved search does not save files/folders selection

Posted: 2025-01-22, 15:09 UTC
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

Re: Saved search does not save files/folders selection

Posted: 2025-01-22, 15:11 UTC
by JOUBE
This function does not actually exist. There is only (but working perfect) the opposite. Search everything and exclude the unwanted directories.

Re: Saved search does not save files/folders selection

Posted: 2025-01-22, 15:18 UTC
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".

Re: Saved search does not save files/folders selection

Posted: 2025-01-22, 21:52 UTC
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.

Re: Saved search does not save files/folders selection

Posted: 2025-01-23, 11:05 UTC
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.