PgUp and PgDown to navigate #12853

Closed
opened 2026-01-31 03:26:44 +00:00 by claunia · 2 comments
Owner

Originally created by @fsktom on GitHub (Mar 4, 2021).

Description of the new feature/enhancement

Currently (as far as I know) the only way to navigate the Windows Terminal is to use the scroll wheel. You can't use arrow keys as they are used for auto-completion selection.

My idea is to make the buttons Page Up and Page Down work with Windows Terminal. Maybe they just move up one line or up a whole page.

Originally created by @fsktom on GitHub (Mar 4, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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 <!-- 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). --> Currently (as far as I know) the only way to navigate the Windows Terminal is to use the scroll wheel. You can't use arrow keys as they are used for auto-completion selection. My idea is to make the buttons Page Up and Page Down work with Windows Terminal. Maybe they just move up one line or up a whole page.
Author
Owner

@zadjii-msft commented on GitHub (Mar 4, 2021):

The Terminal already supports scrolling with the keyboard, you just need more modifiers 😃

2961a104af/src/cascadia/TerminalSettingsModel/defaults.json (L353-L358)

If you really want scrolling on pgup/pgdown, you could add something like the following to your keybindings:

{ "command": "scrollUpPage", "keys": "pgup" }, 

And of course, if you really don't want ctrl+shift+pgup to scroll, you can unbind it with:

{ "command": "unbond", "keys": "ctrl+shift+pgup" }, 
@zadjii-msft commented on GitHub (Mar 4, 2021): The Terminal already supports scrolling with the keyboard, you just need more modifiers 😃 https://github.com/microsoft/terminal/blob/2961a104afac20cc3a9aad6c70e1518fa1250253/src/cascadia/TerminalSettingsModel/defaults.json#L353-L358 If you really want scrolling on pgup/pgdown, you could add something like the following to your keybindings: ```json { "command": "scrollUpPage", "keys": "pgup" }, ``` And of course, if you really don't want `ctrl+shift+pgup` to scroll, you can unbind it with: ```json { "command": "unbond", "keys": "ctrl+shift+pgup" }, ```
Author
Owner

@fsktom commented on GitHub (Mar 4, 2021):

Thank you so much! Sorry for making an issue for such a thing

@fsktom commented on GitHub (Mar 4, 2021): Thank you so much! Sorry for making an issue for such a thing
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12853