Being able to bind any key actions to other keys #8027

Closed
opened 2026-01-31 01:18:55 +00:00 by claunia · 2 comments
Owner

Originally created by @mutageneral on GitHub (May 8, 2020).

Description of the new feature/enhancement

When I browse man pages I have to use the arrow keys to move up and down and it's slow. So I wanted to bind shift+mouceweelUP to arowkeyUP but you cannot bind keys to other keys. The command (referring to the command property of the keybindings, not a command entered in a cli) the arrow keys trigger when they are pressed is not available to be assigned to other keys. I also didn't find any way to bind something to the mouse-wheel in https://github.com/microsoft/terminal/blob/master/doc/cascadia/SettingsSchema.md#keys

Proposed (not so)technical implementation "details"

Add all the commands/actions that keys can trigger and add all the keys (and other inputs like a mouse wheel) you could possibly bind things to.

Originally created by @mutageneral on GitHub (May 8, 2020). # Description of the new feature/enhancement When I browse man pages I have to use the arrow keys to move up and down and it's slow. So I wanted to bind shift+mouceweelUP to arowkeyUP but you cannot bind keys to other keys. The command (referring to the command property of the keybindings, not a command entered in a cli) the arrow keys trigger when they are pressed is not available to be assigned to other keys. I also didn't find any way to bind something to the mouse-wheel in https://github.com/microsoft/terminal/blob/master/doc/cascadia/SettingsSchema.md#keys # Proposed (not so)technical implementation "details" Add all the commands/actions that keys can trigger and add all the keys (and other inputs like a mouse wheel) you could possibly bind things to.
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 01:18:55 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (May 9, 2020):

Thanks for the request! I think your request will be solved by combining #1553 and #3799, when they're done.

However, I think your actual bug is a /dupe of #381. The pager that man uses typically enables the alternate buffer mode, and then it enables a "mouse cursor keys" mode that translates your mouse wheel automatically into up/down commands.

Because Terminal is not aware that the "alternate buffer" mode is turned on, it doesn't have the right mouse wheel behavior in the pager.

@DHowett-MSFT commented on GitHub (May 9, 2020): Thanks for the request! I think your _request_ will be solved by combining #1553 and #3799, when they're done. However, I think your _actual bug_ is a /dupe of #381. The pager that `man` uses typically enables the alternate buffer mode, and then it enables a "mouse cursor keys" mode that translates your mouse wheel _automatically_ into up/down commands. Because Terminal is not aware that the "alternate buffer" mode is turned on, it doesn't have the right mouse wheel behavior in the pager.
Author
Owner

@ghost commented on GitHub (May 9, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (May 9, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8027