Extend switch action to support switching to non-file buffers