Home Download Buy Blog Forum Support

Show a file selector from a plugin

Show a file selector from a plugin

Postby jfromaniello on Mon Jun 25, 2012 2:42 pm

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
jfromaniello
 
Posts: 14
Joined: Tue Sep 27, 2011 2:48 pm

Re: Show a file selector from a plugin

Postby quarnster on Mon Jun 25, 2012 3:42 pm

Yeah, that's what the show_quick_panel api function is for.
quarnster
 
Posts: 389
Joined: Tue Nov 29, 2011 11:34 am

Re: Show a file selector from a plugin

Postby jfromaniello on Tue Jul 03, 2012 6:27 pm

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
http://screencloud.net/img/screenshots/ ... 715030.png

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

thanks
jfromaniello
 
Posts: 14
Joined: Tue Sep 27, 2011 2:48 pm


Return to Plugin Development

Who is online

Users browsing this forum: kinokasai, mattst and 9 guests