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…