Added command to move tab to the left and right

Partly addresses #795
Repetition doesn't work though. Would probably need to add special handling to `repeatFunction`