Select loop command

Uses the loop start and end for the selection.