Sublime Forum

Show a file selector from a plugin

#1

Is there a way I can show a file selector from within a plugin?

With file selector I mean the “go to anything” list which i think is the show_overlay command.

I don’t want to navigate to the file, but show a list of files. I am trying to write a plugin that will first ask to the user another file, and then insert a text in the ccurrent view.

thanks

0 Likes

#2

Yeah, that’s what the show_quick_panel api function is for.

0 Likes

#3

Hi, thank you for your quick answer… and sorry for my delay but i was expecting a mail.

Now I am trying to rewrite something as the file selector using the show_quick_panel and in the items I am sending an array of [filename, path]. This looks a lot like the dialog used to navigate to other files but when I write to search something it seems that it only filters for the filename and not within the path.

for instance when I typed config/inde here i got this
screencloud.net/img/screenshots/ … 715030.png

with my own version i can’t achieve this. Is there an API for this?

thanks

0 Likes