Sublime Forum

show_quick_panel on_highlight callback

#1

I’m using the quick panel to preview colour schemes and themes using the on_highlight callback. I’ve noticed when initialising the quick panel with a selected_index value that the on_highlight callback is triggered once when the list items are populated then again after the selected_index is highlighted.

In the case of my plugins, this causes ST3 to “flicker” from the saved scheme/theme to the first list item back to the original scheme/theme being passed as the selected_index.

Can the quick panel functionality be tweaked to not trigger the on_highlight callback until after the selected_index?

It would also be nice if the quick panel scrolled to show the selected_index item

0 Likes

#2

this is a little late but this is what I do: gist.github.com/malkomalko/957702138e4eb98b7860

0 Likes