Improve performance and escape shell args

also excludes the active pane