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

已回答

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?

1

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

Yes I mean all of them :)

One Example is this dialog:

0

Does nobody have any solution?

0

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

1

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

thanks, it works now :)

0

请先登录再写评论。