Search in dependency
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Description
I would like to search in project dependencies. I have a maven project and this project has some dependencies. I can browse them because there are sources jar (`-sources.jar`). Then I select a dependency and press Find (`Ctrl+F`) and try search some text in this dependency but it returns nothing (Search in Archives and Generated Sources is checked). It searches only in `META-INF` and totally ignores `.class` files. I would expect that it would find searched text at least in `.class` files if it finds it in `META-INF`. But the best option would be to search in connected `-sources.jar` instead of a regular jar dependency.
My proposal is:
* If user search in a dependency without Sources it search in `.class` files
* If there is a connected Sources Jar (`-sources.jar`) then this archive is used for search text
* If dependency is selected directly
* If any package or class is selected

### Use case/motivation
I regularly work with Spring Boot and often search for an autoconfiguration and I have to search in its Github repository or clone it. Another workaround is to add a `-sources.jar` to Favorites and select it for search then the Search works.
### Related issues
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Start by reproducing Ctrl+F on a selected Maven dependency, first without a sources JAR and then with a connected -sources.jar, with Search in Archives and Generated Sources enabled. Trace the dependency search entry point and verify the result searches class content when no sources are available and source content when they are connected, for direct, package, and class selections.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100