Thanks again for your comments and review. I attach the updated patch, in which I added a second option to let users decide whether they want to change the search direction when using motion commands.