Remove unused require
Use cancel instead of detach
Support toggling the available snippets view

Now pressing alt-shift-s while the list is showing will close it again
to mirror the behavior of other select list overlay views.
Inline editor helper method
Defer requiring view until it is rendered