[PR #2700] Add keyboard shortcuts to increase and decrease font size #25037

Open
opened 2026-01-31 09:06:51 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/2700

State: closed
Merged: Yes


Summary of the Pull Request

This hooks up the already existing shortcut actions for increasing and decreasing font size so that keyboard shortcuts can be used. Also adds default shortcuts ctrl+= and ctrl+- for increasing and decreasing font size.

References

A previous PR was done for this feature but was closed and never completed: #1740 . This is a continuation of that work.

PR Checklist

  • Closes Unable to use backslash on any shell (#1708)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed. No new tests added
  • Requires documentation to be updated
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

There were already actions increaseFontSize and decreaseFontSize that existed but without anything to handle them. The handler shares existing functionality for adjusting font size that already exists with ctrl and scrolling.

Validation Steps Performed

  1. Add keybindings to profiles.json for decreaseFontSize and increaseFontSize
  2. Verified that both keybindings work.
  3. Verified that ctrl + scrolling still works.

1. Delete profiles.json and let terminal generate a default one.
2. Verified that the default keybindings are created. No longer needed with defaults.json

**Original Pull Request:** https://github.com/microsoft/terminal/pull/2700 **State:** closed **Merged:** Yes --- <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request This hooks up the already existing shortcut actions for increasing and decreasing font size so that keyboard shortcuts can be used. Also adds default shortcuts `ctrl+=` and `ctrl+-` for increasing and decreasing font size. <!-- Other than the issue solved, is this relevant to any other issues/existing PRs? --> ## References A previous PR was done for this feature but was closed and never completed: #1740 . This is a continuation of that work. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #1708 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed. **No new tests added** * [ ] Requires documentation to be updated * [x] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments There were already actions `increaseFontSize` and `decreaseFontSize` that existed but without anything to handle them. The handler shares existing functionality for adjusting font size that already exists with ctrl and scrolling. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed 1. Add keybindings to `profiles.json` for `decreaseFontSize` and `increaseFontSize` 2. Verified that both keybindings work. 3. Verified that ctrl + scrolling still works. ~~1. Delete `profiles.json` and let terminal generate a default one.~~ ~~2. Verified that the default keybindings are created.~~ No longer needed with `defaults.json`
claunia added the pull-request label 2026-01-31 09:06:51 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25037