jEdit Hypersearch / Emacs list-matching-lines in IntelliJ ?

In the Search -> Find, I would like to be able to get the list of matching lines, like the jEdit HyperSearch or the Emacs list-matching-lines.

How could I do this ?

Any hints to write a plugin to add this feature ?

Thanks

Philippe

0
Avatar
Permanently deleted user

A partial solution is CtrlShiftF7, which highlights all usages of a
variable/field/etc, or the selected text if a selection is present. However,
this feature does not support regular expression matching, case insensitivity, etc.

Writing a plugin to do this would be pretty simple, I think. You could probably
invoke a Find window, then manually search the file and pop up a Find Usages
toolwindow containing all of the matching lines.

Philippe Gaudin wrote:

In the Search -> Find, I would like to be able to get the list of matching lines, like the jEdit HyperSearch or the Emacs list-matching-lines.

How could I do this ?

Any hints to write a plugin to add this feature ?

Thanks

Philippe


0
Avatar
Permanently deleted user

Hello Philippe,

PG> In the Search -> Find, I would like to be able to get the list of
PG> matching lines, like the jEdit HyperSearch or the
PG> Emacs list-matching-lines.
PG>
PG> How could I do this ?

Find in Path (Ctrl-Shift-F), check "File mask" checkbox, enter the name of
the current file in the "File name filter" edit box, click "Find", press
"Merge usages from the same line" button in the Find panel.

To implement this as a plugin, you can use FindManager.showFindDialog() to
show the dialog, FindManager.findString() to get the search results, and
UsageViewManager.showUsages() to present the results. (If you need a more
detailed explanation for this, just ask.)

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0
Avatar
Permanently deleted user

Thanks a lot !

Hello Philippe,


To implement this as a plugin, you can use
FindManager.showFindDialog() to
show the dialog, FindManager.findString() to get the
search results, and
UsageViewManager.showUsages() to present the results.
(If you need a more
detailed explanation for this, just ask.)


...now a stupid question...

If it's so simple... why isn't it already in IntelliJ ?

Philippe

0
Avatar
Permanently deleted user

Hello Philippe,

>> To implement this as a plugin, you can use
>> FindManager.showFindDialog() to
>> show the dialog, FindManager.findString() to get the
>> search results, and
>> UsageViewManager.showUsages() to present the results.
>> (If you need a more
>> detailed explanation for this, just ask.)
PG> ..now a stupid question...
PG>
PG> If it's so simple... why isn't it already in IntelliJ ?

Well, implementation difficulty is not the only criterion we use to decide
on the features to be included in the product...

Feel free to add a JIRA request for this feature.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0
Avatar
Permanently deleted user

The Jira request is http://www.jetbrains.net/jira/browse/IDEADEV-2481

Feel free to vote for it ;)

Philippe

0
Avatar
Permanently deleted user

Hello Philippe,

PG> The Jira request is
PG> http://www.jetbrains.net/jira/browse/IDEADEV-2481
PG>
PG> Feel free to vote for it ;)

In fact, this feature is already implemented for IDEA 5.1.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0
Avatar
Permanently deleted user

Great !

I'm just trying build 3511... and I don't see how to use it...

0
Avatar
Permanently deleted user

Hello Philippe,

PG> Great !
PG>
PG> I'm just trying build 3511... and I don't see how to use it...

The action is implemented in IDEA 5.1, not in 5.0.2. Now that we have multiple
development branches, the "Fixed in build" field in JIRA does not always
show adequate results - you should look at "Fix version" instead.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0
Avatar
Permanently deleted user

So I will have to wait :(

0

请先登录再写评论。