Scrolling using trackpad when editing a file in vim/nano should move cursor up/down #16971

Closed
opened 2026-01-31 05:28:47 +00:00 by claunia · 2 comments
Owner

Originally created by @warpdesign on GitHub (Mar 10, 2022).

Description of the new feature/enhancement

Using the trackpad to scroll up/down by default scrolls terminal buffer. When editing a file in vim, doing the same thing should send cursor up/down to the terminal so that it scrolls within vim/nano's context rather than scrolling the terminal buffer.

This is what VSCode or iTerm do for example.

Here is what happens in Windows Terminal when using the trackpad in nano:

terminal-trackpad

Proposed technical implementation details (optional)

Here is what happens in VSCode (and I suggest should happen in Windows Terminal too):

https://user-images.githubusercontent.com/199648/157679351-5679492f-c843-4458-b6c0-00f9d0df90c8.mov

Originally created by @warpdesign on GitHub (Mar 10, 2022). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement Using the trackpad to scroll up/down by default scrolls terminal buffer. When editing a file in vim, doing the same thing should send cursor up/down to the terminal so that it scrolls within vim/nano's context rather than scrolling the terminal buffer. This is what VSCode or iTerm do for example. Here is what happens in Windows Terminal when using the trackpad in nano: ![terminal-trackpad](https://user-images.githubusercontent.com/199648/157679028-c3752ec9-e4be-4ec7-b35d-a5f4dd9ec2d4.gif) <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) Here is what happens in VSCode (and I suggest should happen in Windows Terminal too): https://user-images.githubusercontent.com/199648/157679351-5679492f-c843-4458-b6c0-00f9d0df90c8.mov <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 05:28:47 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Mar 10, 2022):

Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #3321 for more discussion.

/dup #3321

@zadjii-msft commented on GitHub (Mar 10, 2022): Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #3321 for more discussion. /dup #3321
Author
Owner

@ghost commented on GitHub (Mar 10, 2022):

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 (Mar 10, 2022): 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#16971