IssueRaiser

Feature Request: Mouse/Touch/Pointer Bindings (like middle-click paste, right-click context menu, etc.)

# Summary of the new feature/enhancement Expand settings to be able to define remappable mouse bindings. Arguably, different touch events should fall under this too. So let's just call this "pointer bindings" for now. # Proposed technical implementation details (optional) Mouse bindings are a bit trickier than keybindings in that the mouse has a location where the event occurs. For example, right-clicking a tab should have a different effect on the terminal than right-clicking the terminal. As a _super_ early idea, consider this format: ```js "pointerbindings": [ { "device": "mouse", "event": "rightClick", "where": "tab", "command": "flyoutMenu" }, { "device": "mouse", "event": "doubleClick", "where": "terminal", "command": "wordSelection" }, { "device": "touch", "event": "swipe", "where": "terminal", "command": "scroll" } ] ``` We definitely need a spec for this because it'll be a bit hefty. We'll also need to update a decent amount of documentation (particularly settings schema) to be able to describe what combinations are acceptable (again, the JSON mentioned up here is just me rambling about a potential implementation.) There may be overlap between some commands in keybindings. Be sure to think that through. ###### Mike notes: _we should go back and collect up all the threads we've said "this would be a good mouse bindings feature" below_ ---- ###### spec draft # Mouse bindings ## Abstract We've had numerous requests to configure h

Posted by carlos-zamora on Jun 24, 2019, 7:31 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

github (Other)

Feature Request: Mouse/Touch/Pointer Bindings (like middle-click paste, right-click context menu, etc.)

carlos-zamoraJun 24, 2019, 7:31 PM

# Summary of the new feature/enhancement Expand settings to be able to define remappable mouse bindings. Arguably, different touch events should fall under this too. So let's just call this "pointer bindings" for now. # Proposed technical implementation details (optional) Mouse bindings are a bit trickier than keybindings in that the mouse has a location where the event occurs. For example, right-clicking a tab should have a different effect on the terminal than right-clicking the terminal. As a _super_ early idea, consider this format: ```js "pointerbindings": [ { "device": "mouse", "event": "rightClick", "where": "tab", "command": "flyoutMenu" }, { "device": "mouse", "event": "doubleClick", "where": "terminal", "command": "wordSelection" }, { "device": "touch", "event": "swipe", "where": "terminal", "command": "scroll" } ] ``` We definitely need a spec for this because it'll be a bit hefty. We'll also need to update a decent amount of documentation (particularly settings schema) to be able to describe what combinations are acceptable (again, the JSON mentioned up here is just me rambling about a potential implementation.) There may be overlap between some commands in keybindings. Be sure to think that through. ###### Mike notes: _we should go back and collect up all the threads we've said "this would be a good mouse bindings feature" below_ ---- ###### spec draft # Mouse bindings ## Abstract We've had numerous requests to configure h

Comments (0)

No comments yet. Start the discussion.

Comment on this issue