cursorless-dev / cursorless

Don't let the cursor slow you down

Home Page:https://www.cursorless.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Keyboard: Automatically target selection when moving the cursor with arrow keys or mouse

colesam opened this issue · comments

Issue: When in cursorless mode, moving the primary cursor (box outline) with the arrow keys or mouse can sometimes leave the pink cursor in a previous location, resulting in unintuitive behavior. This often results in accidentally executing a command in some previous position. To get around this I find myself having to spam 'ctrl-c' to make sure the cursor is where I would expect it to be.

To fix this I propose that if the cursor is moved using the arrow keys or by clicking with a mouse, that the action cursorless.keyboard.targeted.targetSelection is run automatically to keep the cursorless cursor where the user would expect.

It would be good to cover all vscode actions that move the cursor, as I have ctrl-e mapped to go to the end of the line, ctrl-(hjkl) as the arrow keys, etc.