shmosel
shmosel

Reputation: 50716

Search modified files in Eclipse

Eclipse's search view shows a > in front of folders or files that have been modified in version control. Other than manually removing results without that symbol, is there some way to exclude unmodified results from a search?

Upvotes: 0

Views: 862

Answers (1)

Chandrayya G K
Chandrayya G K

Reputation: 8849

There is a workaround for this, no direct solution.

Open Git Staging view in eclipse. In Unstaged changes section, all modified files will be listed automatically(with > mark). Select any file in it then press Ctrl+A. Right click on selection then click Show In > Project Explorer/Package Explorer/Navigator. Now all modified files will be selected in corresponding view.

Then open search dialog(Ctrl+H) and enter the search string and DON'T forget to select search scope as Selected Resources.

Upvotes: 1

Related Questions