|
Re: Search opens in java search, not file search. [message #1048491 is a reply to message #1048270] |
Wed, 24 April 2013 14:44 |
|
On 04/24/2013 02:40 AM, Florian F wrote:
> Hello,
>
> There is one behaviour of Eclipse that is annoying. When I press
> Ctrl-H, it opens the search dialog, but it also switches to the "Java
> Search" tab. As a result it happens regularily that I search for some
> text, and I don't find it because it did a "java search" instead.
>
> Most of the time, I do a text search. So I would like ctrl-H to open
> the search dialog in file search tabl, or in the same tab as it opened
> last time.
>
> The action for "ctrl-H" is "Open search dialog". Is there a good reason
> to assume java search is what is wanted?
> Is there a setting that can disable this behaviour? Or change the
> default tab to file search?
>
> For time being, I customise the search dialog to remove the java search
> tab. But I also need to do a java search sometimes.
>
> Your comments are welcome.
That dialog is configurable. You can change it to "file search" or other
modes, what I do.
|
|
|
|
|
Re: Search opens in java search, not file search. [message #1049267 is a reply to message #1049041] |
Thu, 25 April 2013 15:42 |
|
On 4/25/2013 3:14 AM, Florian F wrote:
> I have seen you can remove the tabs you don't like. But can you define
> the default tab?
>
> In the meantime I noticed that the tab that opens depends on where the
> focus is when you hit ctrl-H. If the focus is on a java file, it opens
> the Java Search. If the focus is on the search results, it open the
> File Search.
>
> So, is it possible to specify that for a java file, the tab to open is
> still the file search?
It's probably not very sophisticated of me, but I don't find the Java
search and the other tabs all that interesting. I always remove pretty
much all the tabs including the Java one and just use File Search. This
is probably because a) I only write Java code, b) putting *.java in File
name patterns turns it into a Java search as far as I care, and c) I'm
just an old command-line guy who sees this as a slightly more
Eclipse-convenient way of doing what I'd otherwise do:
project-root $ find . -name '*.java' -exec fgrep -H searchstring {} \;
Some day I should sharpen this saw, but it's been over 7 years and
whatever this approach isn't doing for me hasn't irked me yet.
Cheers!
|
|
|
|
Re: Search opens in java search, not file search. [message #1049923 is a reply to message #1049791] |
Fri, 26 April 2013 13:05 |
|
On 04/26/2013 03:16 AM, Florian F wrote:
> Yes, keeping only the File Search is what I ended up doing. And
> ctrl-shift-G does in fact everything I would need Java Search for.
>
> It just happened that I reinstalled Eclipse and I had Java Search
> available again and it promptly interferred with my searches. It should
> be less intrusive out of the box.
>
> I use find and grep on occasions, but my Eclipse runs on windows. And
> with grep you cannot just click the match to open the corresponding file.
Eclipse is a lot of wonderfully useful things, but the two that stand
the tallest in my book are:
- Ctrl Shift G
- Refactoring
|
|
|
Powered by
FUDForum. Page generated in 0.07031 seconds