Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow remapping of experimental.repositionCursorWithMouse to use key bindings such as Alt + Left Click #17907

Open
digitalguy99 opened this issue Sep 11, 2024 · 2 comments
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@digitalguy99
Copy link

digitalguy99 commented Sep 11, 2024

Description of the new feature/enhancement

I'm aware that as of now, by setting experimental.repositionCursorWithMouse as true, we are able to move the cursor to the mouse's position with a simple left click. However, there are times when I want to simply click on the terminal to get it into focus without moving the cursor around. Hence, I think it would be best to let the user choose what keys would be best for them to utilize this feature, for eg. Alt+Left Click/Ctrl+Left Click/Middle Click.

Proposed technical implementation details (optional)

I'm aware that mouse key bindings are currently not available yet as explained in #1553. However, once they are available, I'd really love it if we can have a command such as moveCursorWithMouse and not just experimental.repositionCursorWithMouse as a profile setting just like how we have showContextMenu as a command that can be mapped to a key binding and not just the profile setting experimental.rightClickContextMenu.

So maybe we could have something like this in the future:

{ "command": "moveCursorWithMouse", "keys": "alt+left_click" }
@digitalguy99 digitalguy99 added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Sep 11, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Sep 11, 2024
@zadjii-msft
Copy link
Member

thought: what if we just made it so a click that focuses the window doesn't attempt to move the cursor? I believe we already do that for selections (click-to-focus the window won't start a selection)

@digitalguy99
Copy link
Author

Good idea, is there a way to do that yet somehow?
But, anyhow, I think it'd be great if we could still choose the key binding especially since in iTerm2, Option+Left Click allows you to move the cursor to mouse position. Similarly, Alt+Left Click on the VSCode terminal would also do the same. I know some people would like to have the same key binding for every app to make it easier to remember.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

2 participants