Don't prevent commands when there are no editors or editor has no path.
Added SELECTION command variable.