Fork me on GitHub
#cursive
<
2023-12-18
>
isak17:12:24

Is there a good way to manage the directories that get searched via Ctrl-Shift-F (for any of the search tabs) so that it only does searches files on the source-path? (using deps integration) Or at least does not show me files that are gitignored?

isak17:12:30

I asked because I assumed the clj integration would automatically clear them if I manually set them as excluded, similar to how it manages the directories marked as source, but I'm starting to think that was wrong, and that they will be left alone. If so, I'm good.

Bob B18:12:57

the find dialog has options to limit where the search happens... I think it's likely that the scope for "project production files" or "project files" would probably do more or less just source paths

isak18:12:31

@UDCGPTV9R Ah I just marked them as excluded, that is probably better, thanks. I still think the search here is worse and than in other editors. For example, in VS Code there is just a quick toggle to filter out gitignored files. So you don't have to manually sync lists like this with the gitignore.

salam18:12:28

Yeah, I agree. I can only guess the rationale behind why there are three ways just to get files/directories excluded from search/indexing/inspections is to give developers more flexibility.

๐Ÿ‘ 1
Bob B18:12:01

You might want to consider voting for <https://youtrack.jetbrains.com/issue/IDEA-177598> or one of the related requests.

๐Ÿ‘ 1
cfleming20:12:50

Yes, this is unfortunately an IntelliJ thing I donโ€™t have much (if any) control over. I suspect the scope selection that Bob B suggests is probably the best workaround, but Iโ€™m not 100% sure it will work.

๐Ÿ‘ 2
kennytilton23:12:40

I like to click on a directory in the project panel, then hit the find-in-files key chord. I also have that dialogue filtering *.clj*. Oh, and I search by directory, not project. And doing that, I can when energetic use the pulldown on the directory to jump between the main source and a separate examples directory. Searching the whole repo is OK, too, given the clj filter.

๐Ÿ‘ 1
serioga08:12:35

@U08JKUHA9 IDEA does not search in ignored files. But often, project ignored files are not the same as listed in .gitignore. If you open .gitignore in the editor then IDE offers to fix the discrepancy.

๐Ÿ’ฏ 2
1
๐Ÿ™Œ 2
isak13:12:05

@U0HJNJWJH didn't notice that, very useful. thanks!

๐Ÿค 1