Add an ability to reset zoom #3624

Closed
opened 2026-01-30 23:25:46 +00:00 by claunia · 5 comments
Owner

Originally created by @eyalroth on GitHub (Aug 28, 2019).

Description of the new feature/enhancement

Allow to reset the zoom (to 100%) after changing it with Ctrl + Mouse scroll. A keyboard shortcut -- say, Ctrl+0 -- would be enough to start with.

There is already an issue for this request, but it mainly addresses another bug.

Originally created by @eyalroth on GitHub (Aug 28, 2019). # Description of the new feature/enhancement Allow to reset the zoom (to 100%) after changing it with `Ctrl + Mouse scroll`. A keyboard shortcut -- say, `Ctrl+0` -- would be enough to start with. There is already [an issue](https://github.com/microsoft/terminal/issues/300) for this request, but it mainly addresses another bug.
Author
Owner

@zadjii-msft commented on GitHub (Aug 28, 2019):

#300 more refers to the original conhost, so this isn't really a dupe.

This pairs nicely with #1142/#1349, for maybe setting the font size to a specific size, not just resetting it.

@zadjii-msft commented on GitHub (Aug 28, 2019): #300 more refers to the original conhost, so this isn't really a dupe. This pairs nicely with #1142/#1349, for maybe setting the font size to a _specific_ size, not just resetting it.
Author
Owner

@Jaykul commented on GitHub (Sep 17, 2019):

Just a note: for now, you can somewhat work around this by triggering a settings reload.

E.g. by touching the file...

sp "~\AppData\Local\Packages\Microsoft.WindowsTerminal_*\LocalState\profiles.json" LastWriteTime (Get-Date)
@Jaykul commented on GitHub (Sep 17, 2019): Just a note: for now, you can somewhat work around this by triggering a settings reload. E.g. by `touch`ing the file... ```PowerShell sp "~\AppData\Local\Packages\Microsoft.WindowsTerminal_*\LocalState\profiles.json" LastWriteTime (Get-Date) ```
Author
Owner

@zoechi commented on GitHub (Dec 6, 2019):

Ctrl+0 works for me.
It's weird though that ctrl+- zooms out, ctrl++ doesn't allow to zoom in.

I'm searching for a way to disable zooming at all.

This did it for ctrl+-, but I haven't found custom bindings for the mouse wheel.

 {
      "command": "unbound",
      "keys": [ "ctrl+-" ]
    },
@zoechi commented on GitHub (Dec 6, 2019): Ctrl+0 works for me. It's weird though that ctrl+- zooms out, ctrl++ doesn't allow to zoom in. I'm searching for a way to disable zooming at all. This did it for ctrl+-, but I haven't found custom bindings for the mouse wheel. ```js { "command": "unbound", "keys": [ "ctrl+-" ] }, ```
Author
Owner

@zadjii-msft commented on GitHub (Dec 6, 2019):

@zoechi for the record, the reason "increaseFontSize" is bound to Ctrl+= is that on a US keyboard layout, + is on the same key as =, but you need to hold shift to get the +. So typically, most applications has zoom in bound to Ctrl+= anyways, since it's silly to have zoom out bound to ctrl+key and zoom in bound to ctrl+shift+key


Goodness gracious, this was actually added in #3505, which was shipped in 0.7. Looks like we let #3319 exist without getting duped to this thread.

@zadjii-msft commented on GitHub (Dec 6, 2019): @zoechi for the record, the reason "increaseFontSize" is bound to <kbd>Ctrl+=</kbd> is that on a US keyboard layout, `+` is on the same key as `=`, but you need to hold shift to get the `+`. So typically, most applications has zoom in bound to <kbd>Ctrl+=</kbd> anyways, since it's silly to have zoom out bound to `ctrl+key` and zoom in bound to `ctrl+shift+key` <hr> Goodness gracious, this was actually added in #3505, which was shipped in 0.7. Looks like we let #3319 exist without getting duped to this thread.
Author
Owner

@zoechi commented on GitHub (Dec 6, 2019):

@zadjii-msft Thanks for the info. I wasn't aware of that because on German keyboards it's usually Ctrl++

@zoechi commented on GitHub (Dec 6, 2019): @zadjii-msft Thanks for the info. I wasn't aware of that because on German keyboards it's usually <kbd>Ctrl</kbd>+<kbd>+</kbd>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3624