Is it possible to add a menu item to search "Find in files" dialog?
Answered
Hello,
I want to know is it possible to add a menu item to search "Find in files" dialog?
Thank you!
Please sign in to leave a comment.
Hi Alexandr,
Please try adding your action to
FindInFiles.Results.ContextMenu
group.Hi Karol,
Thank you! I tried this, but no success. Maybe I'm doing something wrong?
Hi Alexandr,
I don't see any problems with this code. Maybe your AnAction.update() hides it? If not, I suggest debugging:
https://github.com/JetBrains/intellij-community/blob/master/platform/lang-impl/src/com/intellij/find/impl/FindPopupPanel.java#L623
Check if the group contains your action and it's not removed later (I briefly checked it and can't see any removal, so maybe the problem is with your code).
Hi Karol,
Thank you! I tried different cases, but no success. Right now I'm getting this error:
Can this group be closed, for internal use only?
Hi Alexandr,
It was introduced relatively recently and is available from 2022.3 (I checked 2022.3.3, but it should work in 2022.3 as well).
Thank you so much, Karol!
I checked. I tested it in 2022.1 sandbox. Right now downloading 2022.3 to test.