Customize FileSearchEverywhereContributor
Answered
Hi,
I added the extension but I couldn't hook into the files search. My extension code only gets triggered when "searching everywhere"
This is just test code to get me going, I didn't figure out what I'm missing. Is there a sample code I can follow?
Thank you
Please sign in to leave a comment.
> into the files search
Please explain, what do you want to achieve exactly in your plugin?
Thank you for your reply
My plugin "renames" some files in a SvelteKit project by changing their representation data
I use these extension points to achieve that
I was wondering how to make those "files" searchable also using the "Navigation > Files..." feature
Is creating a virtual file system a better approach to my use case?
Thank you
I think I will have some luck with gotoFileContributor
I will give it a try and see how it goes
Yes, `gotoFileContributor` EP should work here. You can also use
com.intellij.openapi.fileEditor.impl.EditorTabTitleProviderEP to customize editor tab title/tooltip.Thank you
I got it working very well
I'd like to share the code maybe someone finds it useful