add move cursor snippet