"More than 100 matches" in search
Answered
When doing a search, starting with IntelliJ 7, when there are more than 100 matches, we now get a message "More than 100 matches" and the matches are not highlighted in the right side bar. Is there a way to bump up this limit (or altogether get rid of it)?
Alex
Please sign in to leave a comment.
Hello Alessandro,
Why do you need to highlight more than 100 matches?
The 7.0.2 EAP also has the "Find all" button which will show all matches
in a toolwindow, regardless of their number.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
The marks on the right give you a visual indication on where the matches are in the file. Say you have a pretty large log file open, with one line every second for the last 7 days. You search for an error. Just looking at the marks on the right bar you will be able to visualize if the errors happened only during the last few days (towards the end of the file). And I'm sure that everyone will come up with it own use case for this.
I just installed the 7.0.2 EAP. Find all opens a new window, but does not highlights the occurrences that were found in the file. So this is not really a replacement.
Alex
Hello Alessandro,
OK, looks like we could add a "Highlight all" button that will be shown in
this case. Could you please file a JIRA issue?
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Dmitry,
There you go: http://www.jetbrains.net/jira/browse/IDEA-16377
And thank you for the prompt replies and all the great work on IntelliJ!
Alex
sagte eine Quelle dem Bericht zufolge.Bei der http://www.dress4sale.de/meerjungfrau-brautkleider Hochzeit von Prinz William und Kate Middleton wird die Braut laut einem Zeitungsbericht in einem Kleid aus dem Modehaus Alexander McQueen vor den Altar schreiten. Bei der künstlerischen Leiterin http://www.dress4sale.de/ballkleider des Modeshauses, Sarah Burton, sei "die begehrteste Bestellung" des Jahres eingegangen, berichtete die Sonntagszeitung "Sunday Times" unter Berufung auf Quellen in der Modewelt.
---
Original message URL: http://devnet.jetbrains.net/message/5299673#5299673
In the quick window, we get the context of the search result (a few lines before the result, and a few lines after) by simply pressing [DOWN] several times.
If we Ctrl+Enter to get all results in the tree, we lose the context, or we have to double-click every occurrence and open every files: this is quite longer!
Hi, Sebastien. What do you propose?
Please note there is also an option to enable an occurrences preview in Find tool window:
Perfect! That's exactly what I wanted :-)
I would love this feature.
100 is often just not enough. If there is a memory limitation or valid reason this cannot be done, due to to many files open then I understand.
Otherwise I see this as a ++ feature for IntelliJ Idea. Due to large projects I always hit this limit, which means I don't get the full results but some random result set. If you doing some large refactoring this Find in Path windows is invaluable. Your able to change the code right there in the find Window and can easily move between the results. The Open in Find Window is no where near and comfortable to work in. Please add this feature. It can even be added to the drop down filter as 100, 500, 1000, 5000, 10000 or similar
This is a projected refactoring super tool in my humble opinion.
Rory
You can set ide.usages.page.size Registry option (Help | Find Action... type Registry and set the value in dialog):
OH MY WORD!!!
Andrey, you legend. This is going to make my refactoring so much easier. I really appreciate this post with screenshot.
I love how the Registry hides a lot of valuable variables to quick fixes like this. Great place for custom requirements.
Thank you.
Example image attached after changing default 100+ to 1000+
I would love to increase the search results also. I am on a Mac so Aundrey's patch will not work. Any ideas?
Brian
Hi Brian
Why would Andrey's patch (Registry change) not work?
On a mac you can open the registry by typing 'cmd + shift + A', as far as I know. Type 'registry' and go change the value.
Or am I not following?
Rory
Hi Rory,
That opens the Application folder. There is no equivalent registry on a Mac.
Brian
That is a pity.
I assume this https://stackoverflow.com/questions/28415695/how-do-you-set-a-value-in-the-intellij-registry is wrong then?
Last answer also points to this https://www.mkyong.com/spring-boot/intellij-idea-spring-boot-template-reload-is-not-working/
Is it possible the version of IntelliJ your using doesn't have it?
Rory
Hi Rory,
My mistake. I thought we were talking about an OS registry like what Windows have. This registry is part of the Webstorm application. I have changed the size and it is working. Thanks!
Brian
No prob, happy you found it and it worked.
Yes the Windows OS Registry is the first one that comes to mind. Enjoy.
Rory
For those who arrive here from google, the registry setting is no longer available. It has moved to Settings -> Advanced Settings -> Maximum number of results to show in Find In Path/Show Usages preview.
Thank you Adam, was looking for that just now!