-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS: Cmd + Shift + Plus should increase font size too #3899
Comments
Note: the solution here doesn't appear on the surface to be a missing binding (but may be). Some research is required why |
I'm not able to reproduce this on 15.1 Sequoia; both |
I can reproduce this on Sequoia 15.2.
From: Mac keyboard shortcuts
Also, the |
You should be able to just set ⌘+ as the menu item’s key equivalent and AppKit will do the keyboard localization for you for this well-known key equivalent. This is inspectable in other apps that have similar menu items (Safari, TextEdit, Preview, Terminal, and others). I verified locally that removing:
from src/config/Config.zig:2052 and adding:
to macos/Sources/Ghostty/Ghostty.Input.swift:150 resolves the issue on macOS. |
@mdznr I tried that out and it didn't work for me. Here is my diff: ![]() |
@curtbushko your change fixes issue with shortcut, but there's still something wrong. While testing I noticed that shortcut isn't associated with "increasing font" action in menu bar. |
@mateossh Interesting. I have What version of Mac are you on? |
I ran Without config file I have the same behavior as you but with default config applied I don't have shortcut. Ghostty |
Awesome. Thank you. We must have 2 semi-related bugs here. |
This is not how we recommend configuring Ghostty as there are a number of ways that this can mess up. Try removing everything except the configuration entries that you changed and try again. |
Same for me However, |
You probably don't need any more confirmation, but me too on macOS Sequoia 15.2 with a non-US layout. Specifically with a Japanese MacBook Air and the builtin keyboard. Note here plus is shift+semi-colon, the key right of letter l, and unlike the US or UK layout, minus and equals are the same key, minus+shift gives equals): Ghosty v1.0.1 with Apple Japanese keyboard:
i.e. This works as per the built-in menu shortcut labels, but is missing the command+plus behaviour which the Apple Terminal has: Apple Terminal with Apple Japanese keyboard:
Also, I thought it worth mentioning the plus/minus keys on the number-pad ought to work too - with an external Windows style USB keyboard and Ghosty v1.0.1, I can use Windows+num-pad-minus to shrink the text, and Windows+num-pad-zero to reset the size, but not the Windows+num-pad-plus to increase the text (which works in Apple Terminal). |
FWIW, this works as expected for me on macOS 15.2 with Ghostty v1.0.1: keybind = super+shift+plus=increase_font_size:1 With this enabled, cmd+shift+plus increases font size, otherwise it just prints a Not sure why this works when the defaults don't— But I'm happy to use this keybind as a workaround. 👍🏻 |
Good news, this works with the main keyboard's plus key:
Bad news, it does not work with the numpad's plus on my external keyboard. So only a partial workaround for me. |
That's a separate key: |
Thanks! Add rather than plus, that's why I couldn't find it in https://github.com/ghostty-org/ghostty/blob/v1.0.1/src/input/key.zig (I did find a couple of typos - PR submitted) - this works for me:
|
@CanRau on many layouts "+" is shift+"=" (they are the same key on the UK layout for example), so the shortcut is in fact command+"=" and typically command+shift+"=" works too. |
Discussed in #3888
Originally posted by thiagowfx December 29, 2024
Out-of-the-box, the shortcut to increase/decrease font sizes in Ghostty on macOS is
Cmd + +
andCmd + -
, respectively (no Shift).With Shift:
Observed:
Cmd + Shift + +
inserts a literal '+', andCmd + Shift + -
decreases the font size.Expected:
Cmd + Shift + +
should increase the font size as well, consistently.Why is the behavior for
Cmd + Shift + +
different? This seems unintentional.Note that this is the out-of-the-box behavior in both Terminal.app and iTerm2.
The text was updated successfully, but these errors were encountered: