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

0
5 comments

> into the files search

Please explain, what do you want to achieve exactly in your plugin?

0

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

 

0

I think I will have some luck with gotoFileContributor 

I will give it a try and see how it goes

 

0

Yes, `gotoFileContributor` EP should work here. You can also use com.intellij.openapi.fileEditor.impl.EditorTabTitleProvider EP to customize editor tab title/tooltip.

0

Thank you

I got it working very well

I'd like to share the code maybe someone finds it useful

 

0

Please sign in to leave a comment.