Manipulate text in any text field (global search ...)

Answered

Hello,

I want to manipulate the text inside of any text field (global search dialog, local search, ..) and editor with my own plugin.

I already tried with this example: https://jetbrains.org/intellij/sdk/docs/tutorials/editor_basics/working_with_text.html
Inside of my editor it works fine, but inside the texfield of globalsearch there is no action possible.

Can some help me please?

6 comments
Comment actions Permalink

Toggle case action works, if you look how it is implemented, it extends com.intellij.openapi.editor.actions.TextComponentEditorAction. That's it.

1
Comment actions Permalink

Thanks for clarifying. Look at community/platform/lang-impl/src/com/intellij/find/actions/FindInPathAction.java to see how the Find in Path dialog is invoked, and community/platform/lang-impl/src/com/intellij/find/findInProject/FindInProjectManager.java to see how the search works behind that dialog.

1
Comment actions Permalink

Can you clarify what you mean by:

the texfield of globalsearch

Post a screenshot of the dialog, or do you mean Search Everywhere, Search Structurally, Find in Path? If I know the dialog, I may be able to figure out which textfield component you are trying to manipulate.

0
Comment actions Permalink

Yes I mean all of them :)

One Example is this dialog:

0
Comment actions Permalink

Does nobody have any solution?

0
Comment actions Permalink

thanks, it works now :)

0

Please sign in to leave a comment.