Execute commands only in the visual range