Home Download Buy Blog Forum Support

my own functionality resembling Go to Anything

my own functionality resembling Go to Anything

Postby xeno.by on Sun Aug 26, 2012 8:59 am

Suppose I have an index of all classes declared in the program. I want to show the user something like the go to anything panel that would display the entire list and preview the corresponding location when a class gets at the top of a filtered list (just like go to anything previews files that end up at the top of the filtered list of files in the project).

Questions:
1) Is show_quick_panel performant enough to work okishly with huge lists (say, 10k classes)?
2) Can I intercept keypresses in a widget displayed by show_quick_panel and preview stuff in the background just like go to anything does?
xeno.by
 
Posts: 106
Joined: Mon Jan 30, 2012 10:03 am
Location: Lausanne, Switzerland

Re: my own functionality resembling Go to Anything

Postby xeno.by on Sun Aug 26, 2012 9:20 am

Just to answer my first question, even 100k items is not a problem. The panel gets shown immediately and fuzzy filtering when typing is instantaneous.
xeno.by
 
Posts: 106
Joined: Mon Jan 30, 2012 10:03 am
Location: Lausanne, Switzerland

Re: my own functionality resembling Go to Anything

Postby xeno.by on Sun Aug 26, 2012 9:33 am

Allrigthy https://sublimetext.com/forum/viewtopic ... 60&p=36142 seems to be very relevant for #2. Reading up now.

upd. Apparently it's totally possible to: a) bind to keypresses on a quick panel, b) acess currently typed text on a quick panel. Yay! https://github.com/facelessuser/FuzzyFi ... ile_nav.py
xeno.by
 
Posts: 106
Joined: Mon Jan 30, 2012 10:03 am
Location: Lausanne, Switzerland


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 3 guests