Vscode: Show the total number of matches in the Search tab

Created on 23 May 2016  路  14Comments  路  Source: microsoft/vscode

When I search for a string from the Search tab (CtrlShiftF), the search results are shown grouped by files, and a match _per file_ is shown. But vscode doesn't show exactly how many files match, or how many occurrences in total are there. I believe this should be added to the default search ui.

Usecases:

  1. It helps in estimating the amount of time it might take to refactor.
  2. It helps while understanding the impact of a piece of code (more the number of files loosely implies more impact, so I might want to invest more time in optimizing it)
feature-request search

Most helpful comment

@Microsoft/vscode can I get some +1 or -1, the PR in https://github.com/Microsoft/vscode/pull/6997 suggests to just put the message on top of the results. This would look like:

image

@stevencl @bgashler1 fyi

All 14 comments

@Microsoft/vscode can I get some +1 or -1, the PR in https://github.com/Microsoft/vscode/pull/6997 suggests to just put the message on top of the results. This would look like:

image

@stevencl @bgashler1 fyi

-1 just a personal preference I never care about that information.
I do not mind though if we include this - if users find it usefull. It nicely alligns with info in find wigdet - which I also do not use but I see ti can be useful for some people.

:+1: I find it useful when I do mass find and replaces (#1690 :disappointed:)

I don't like that mockup, how about putting it at the bottom of viewlet? Then it isn't so crowed at the top (buttons, input, details, results...)

I like to show this information somewhere and would suggest to try it out for a while to see how it behaves. I am not sure if the position above the search result is good or bad. I think it is good because that is where I would look for it.

ping

Can this be floated in an insider build? Would really be helpful if we could use and give some feedback on this.

The PR cannot be accepted because of a layout glitch I documented in https://github.com/Microsoft/vscode/pull/6997#issuecomment-226732188.

:-1: I'd rather just have it inline without any grammar, like the find widget:

image

Adding a line and writing text makes it both look ugly and take longer to understand since the user'll have to read the sentence.

I think we should have to show the number once we have Replace functionality.

If it is only count, How about showing in the title bar just like in Problems view? Side bar is already narrow and compressing the search bar by adding more info / details make it more cumbersome.

Also Badge like in Git view?

Updating the summary to include number of files also.

@roblourens There is some bug with this feature. It doesn't count properly, or counts too soon (even when search is running)

image

There is some problem...#20411

Was this page helpful?
0 / 5 - 0 ratings