Searching in editor [message #207774] |
Thu, 26 April 2007 13:30  |
Eclipse User |
|
|
|
Is there some way to get the searching in Eclipse to work like the
hyper-search in Jedit? It's the best implementation of searching I've seen
and it would be hard to write out all that it does. But part of what it
does is this: for each match, the search result shows the whole line
containing the match, showing line number and file name. When you click on
a match, you are taken to the file and the line where the match occurred.
|
|
|
|
Re: Searching in editor [message #207886 is a reply to message #207797] |
Fri, 27 April 2007 00:12   |
Eclipse User |
|
|
|
> Tom Lenz wrote:
for each match, the search result shows the whole
>> line containing the match, showing line number and file name. When you
>> click on a match, you are taken to the file and the line where the match
>> occurred.
>>
>
> Well, that is pretty much what the Search view does, although it does not
> display the actual line text. But it does take you to the exact location
> when you click on a search match.
> Are you just asking it to display the actual line text and/or number?
> Displaying number would be pretty straightforward, but the screen real
> estate required to display the actual line text would probably be too
> much. And it is not obvious what it should do for files that have multiple
> matches (currently it says "(x matches") to indicate).
> In any case, feel free to file enhancement requets in Bugzilla for
> features you'd like to see.
Eric,
Thanks for the response.
Yes, one thing I find useful with the Jedit hypersearch window is the
display of the actual line text and number. Yes, what Eclipse is doing for
me right now is close. I'm not sure I follow you as far as too much screen
real estate required. On a search I just did, I'd say about 80 percent of
the horizontal real estate in the search box is unused. The vertical real
estate is already handled by the scroll bar. The size of the window is about
the same size as the window in my setup of Jedit, and there it works quite
nicely.
I also don't follow what you mean about the "not obvious what it should do
for multiple matches". There would be the line displayed for each match or
the line containing multiple matches. When it's done this way you can often
see at a glance which matches you are or are not interested in. And then to
get to a specific line, there's no scrolling or stepping involved. Just a
single click in the hypersearch window and you're there.
Another search implementation that works this way is Logos Library Search
System.
|
|
|
Re: Searching in editor [message #207939 is a reply to message #207886] |
Fri, 27 April 2007 06:12   |
Eclipse User |
|
|
|
Originally posted by: hendrik_maryns.despammed.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tom Lenz schreef:
>> Tom Lenz wrote:
> for each match, the search result shows the whole
>>> line containing the match, showing line number and file name. When you
>>> click on a match, you are taken to the file and the line where the match
>>> occurred.
>>>
>> Well, that is pretty much what the Search view does, although it does not
>> display the actual line text. But it does take you to the exact location
>> when you click on a search match.
>> Are you just asking it to display the actual line text and/or number?
>> Displaying number would be pretty straightforward, but the screen real
>> estate required to display the actual line text would probably be too
>> much. And it is not obvious what it should do for files that have multiple
>> matches (currently it says "(x matches") to indicate).
>> In any case, feel free to file enhancement requets in Bugzilla for
>> features you'd like to see.
>
> Eric,
>
> Thanks for the response.
>
> Yes, one thing I find useful with the Jedit hypersearch window is the
> display of the actual line text and number. Yes, what Eclipse is doing for
> me right now is close. I'm not sure I follow you as far as too much screen
> real estate required. On a search I just did, I'd say about 80 percent of
> the horizontal real estate in the search box is unused. The vertical real
> estate is already handled by the scroll bar. The size of the window is about
> the same size as the window in my setup of Jedit, and there it works quite
> nicely.
>
> I also don't follow what you mean about the "not obvious what it should do
> for multiple matches". There would be the line displayed for each match or
> the line containing multiple matches. When it's done this way you can often
> see at a glance which matches you are or are not interested in. And then to
> get to a specific line, there's no scrolling or stepping involved. Just a
> single click in the hypersearch window and you're there.
>
> Another search implementation that works this way is Logos Library Search
> System.
Sounds very good to me. Please file a bug report!
H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGMcxxe+7xMGD3itQRAh1MAJ9zigtCx/BcvrZa7SqB9waHU9tpRQCf YRnj
IgfQP6UFe3kbeVG1y+0cAU4=
=RUjB
-----END PGP SIGNATURE-----
|
|
|
Re: Searching in editor [message #207946 is a reply to message #207939] |
Fri, 27 April 2007 08:48  |
Eclipse User |
|
|
|
>
> Sounds very good to me. Please file a bug report!
I did. Turns out I should have poked around more before I did it too. This
is the message I got back:
*** This bug has been marked as a duplicate of bug 47136 ***
|
|
|
Powered by
FUDForum. Page generated in 0.09015 seconds