introduce select-inner-outer-mode