Sublime Forum

Hook into show_overlay?

#1

Is it possible to hook into show_overlay to have it show a custom list of items?

Say (as a completely silly example) I want to have it show the remaining days of the current week as the options. Thus, when invoked on a Sunday, it would show Sunday, Monday, Tuesday, and so on until Saturday. But when invoked on a Friday, it would only show Friday and Saturday.

(Actually, I want it to show the views of the current window.)

Oh, err, and I would need to execute custom code once the user picked one of those options…

0 Likes

show_overlay documentation?
#2

Check out Window.show_quick_panel.

1 Like

#3

Thank you, adzenith, it works very nicely.

0 Likes