Lukas
e7f58ad72e
macOS: double click title to enlarge window
...
Previously with `macos-titlebar-style = tabs`, double clicking title will do nothing
2026-04-10 13:41:53 +02:00
Lukas
51cd63871d
macos: passthrough right mouse down event to TabTitleEditor if needed ( #11150 )
2026-03-30 12:22:54 +02:00
Lukas
5de30c0dce
Revert "macOS: fix tab context menu opens on macOS 26 with titlebar tabs ( #9831 )"
...
This reverts commit 894e8d91ba , reversing
changes made to 4a173052fb .
2026-03-30 12:09:51 +02:00
Lukas
5c5029b0c4
Revert "macos: add support for middle-click tab close for macos-titlebar-style = tabs ( #11963 )"
...
This reverts commit 5540f5f249 , reversing
changes made to cca4c788ad .
2026-03-30 12:08:49 +02:00
Nicholas Ochoa
3f6683df02
macos: add support for middle-click tab close
2026-03-29 15:19:35 -07:00
Lukas
4f849a1512
macOS: fix window position for the very first window
2026-03-12 15:42:29 +01:00
Lukas
d6dfaf28fe
macOS: support injecting temporary defaults when testing
2026-03-12 13:16:55 +01:00
Lukas
596d502a75
macOS: restore window frame under certain conditions
2026-03-11 17:45:10 +01:00
Lukas
45d360dc68
macOS: set the initial window position after window is loaded
2026-03-11 17:45:09 +01:00
Lukas
de0f2ab22d
macos: add enum type for macos-titlebar-style
2026-03-10 17:15:14 +01:00
chronologos
7629130fb4
macOS: restore keyboard focus after inline tab title edit
...
After finishing an inline tab title edit (via keybind or double-click),
`TabTitleEditor.finishEditing()` calls `makeFirstResponder(nil)` to
clear focus from the text field, leaving the window itself as first
responder. No code path restores focus to the terminal surface, so all
keyboard input is lost until the user clicks into a pane.
Add a `tabTitleEditorDidFinishEditing` delegate callback that fires
after every edit (commit or cancel). TerminalWindow implements it by
calling `makeFirstResponder(focusedSurface)` to hand focus back to the
terminal.
Fixes https://github.com/ghostty-org/ghostty/discussions/11315
Co-Authored-By: Claude <noreply@anthropic.com >
2026-03-10 08:52:00 -07:00
Lukas
661470897e
macos: passthrough right mouse down event to TabTitleEditor if needed
2026-03-03 17:24:56 +01:00
Lukas
205c05d59d
macos: passthrough mouse down event to TabTitleEditor if needed
2026-03-03 17:15:12 +01:00
Lukas
e6e5f3ffe1
macos: finish editing tab title when the window resigns as key window
2026-03-03 16:34:11 +01:00
A-AKB
0db32ab9a8
macos: fix window size/position restoration on Cmd+W close
...
This fixes two overlapping issues regarding window positioning and Cmd+W window closures on macOS:
1. `window-position-x` and `window-position-y` coordinates were being ignored on initial launch because `TerminalWindow.setInitialWindowPosition` depended on the `TerminalController`, which isn't fully attached during `awakeFromNib`. This logic was moved so explicit coordinates are correctly enforced.
2. When closing a window via Cmd+W (leaving the app active), reopening the window would continuously cascade down and to the right rather than restoring to the previous position. It now checks if there are other windows open before cascading.
3. `LastWindowPosition` was updated to save both the frame origin and size (width/height), ensuring that restoring a closed window correctly mimics native AppKit State Restoration size behaviors while honoring explicit configurations.
2026-02-28 01:34:18 +01:00
Mitchell Hashimoto
f5e2561eb7
macos: rename to TabTitleEditor
2026-02-23 08:38:10 -08:00
Mitchell Hashimoto
b6a9d54e98
macos: extract inline title editing to standalone file
2026-02-23 08:38:09 -08:00
MiUPa
879d7cf337
macOS: remove dead tab title edit helper
2026-02-23 08:38:09 -08:00
MiUPa
368e190a41
macOS: defer inline tab rename start to reduce flicker
2026-02-23 08:38:09 -08:00
MiUPa
f6e9b19fd5
macOS: widen inline tab title editor
2026-02-23 08:38:09 -08:00
MiUPa
feee4443da
macOS: add inline tab title editing
2026-02-23 08:38:09 -08:00
MiUPa
daa2a9d0d5
macos: allow renaming tab title on double-click
2026-02-23 08:38:09 -08:00
Jon Parise
f4d70df34c
macos: swiftlint 'implicit_getter' rule
2026-02-19 19:02:49 -05:00
Jon Parise
629a656e53
macos: swiftlint 'vertical_whitespace' rule
2026-02-19 18:58:28 -05:00
Jon Parise
a36d2f5420
macos: swiftlint 'unused_closure_parameter' rule
2026-02-19 18:57:43 -05:00
Jon Parise
b532cd55d6
macos: swiftlint 'trailing_whitespace' rule
2026-02-19 18:56:43 -05:00
Jon Parise
25b38b291e
macos: swiftlint 'private_over_fileprivate' rule
2026-02-19 18:55:12 -05:00
Jon Parise
6052f664cf
macos: swiftlint 'opening_brace' rule
2026-02-19 18:53:13 -05:00
Jon Parise
9287a61920
macos: swiftlint 'implicit_optional_initialization' rule
2026-02-19 18:36:38 -05:00
Jon Parise
56d67ce88f
macos: swiftlint 'control_statement' rule
2026-02-19 18:34:37 -05:00
Jon Parise
6ade5df799
macos: swiftlint 'comma' rule
2026-02-19 18:33:34 -05:00
Jon Parise
786bad9774
macos: swiftlint 'colon' rule
2026-02-19 18:32:44 -05:00
Mitchell Hashimoto
6ace63acc4
macOS: xib changes from xcode
...
Literally just opening these on Xcode 26.2 does this, so we should
commit it lol.
2026-01-27 08:10:00 -08:00
Mitchell Hashimoto
3e399a3d35
macos: detect surface tab bar hovers and focus them
2025-12-30 15:07:27 -08:00
Mitchell Hashimoto
551031e41f
macOS: move NSGlassEffectView into TerminalViewContainer ( #10062 )
...
- Fixes #9991
> Modifying the subview of NSThemeFrame seems "dangerous" and
unpredictable.
- Provides correct `intrinsicContentSize` as previous
`NSHostingView<TerminalView>` did
> Fixes regression caused by #10046
> [!NOTE]
> AI Proofread some of my comments
2025-12-29 06:52:18 -08:00
Daniel Wennberg
b7a12effce
Only use macOS 26.0 workarounds on macOS 26.0
2025-12-28 09:47:22 -08:00
Lukas
1c90af3569
macOS: move NSGlassEffectView into TerminalViewContainer
2025-12-26 11:44:30 +01:00
Mitchell Hashimoto
2415116ad0
Revert "macOS: move NSGlassEffectView into TerminalViewContainer ( #10046 )"
...
This reverts commit b8490f40c5 , reversing
changes made to 050278feae .
2025-12-25 13:52:59 -08:00
Mitchell Hashimoto
b8490f40c5
macOS: move NSGlassEffectView into TerminalViewContainer ( #10046 )
...
Fixes #9991 , modifying the subview of `NSThemeFrame` seems "dangerous"
and unpredictable.
> [!NOTE]
> AI Proofread some of my comments
https://github.com/user-attachments/assets/c443cf71-8a00-4c37-b008-d89b7f1564a3
2025-12-25 12:51:47 -08:00
rezky_nightky
bf73f75304
chore: fixed some typo
...
Author: rezky_nightky <with dot rezky at gmail dot com>
Repository: ghostty
Branch: main
Signing: GPG (4B65AAC2)
HashAlgo: BLAKE3
[ Block Metadata ]
BlockHash: c37f4ee817412728a8058ba6087f5ca6aaff5a845560447d595d8055972d0eac
PrevHash: 3510917a780936278debe21786b7bae3a2162cb3857957314c3b8702e921b3d4
PatchHash: 5e5bb4ab35df304ea13c3d297c6d9a965156052c82bccf852b1f00b7bcaa7dd4
FilesChanged: 18
Lines: +92 / -92
Timestamp: 2025-12-25T17:27:08Z
Signature1: c1970dbb94600d1e24dfe8efcc00f001664db7b777902df9632a689b1d9d1498
Signature2: 30babb1e3ca07264931e067bfe36c676fb7988c2e06f8c54e0c9538fe7c7fc9a
2025-12-26 00:27:08 +07:00
Lukas
574ee470bd
macOS: move NSGlassEffectView into TerminalViewContainer
2025-12-24 23:10:31 +01:00
Mitchell Hashimoto
95f4093e96
macos: make syncAppearance a virtual method on BaseTerminalController
2025-12-16 12:59:56 -08:00
himura467
4c6d3f8ed2
macos: add toggle_background_opacity keybind action
2025-12-16 11:32:10 -08:00
Mitchell Hashimoto
8482e0777d
macos: remove glass view on syncAppearance with blur
2025-12-15 10:58:35 -08:00
Mitchell Hashimoto
a6ddf03a2e
remove the macos-background-style config
2025-12-15 10:54:35 -08:00
Justy Null
42493de098
fix: make titlebar transparent when using glass background style
2025-12-15 10:12:36 -08:00
Mitchell Hashimoto
d5c378cd6b
minor style tweaks
2025-12-15 10:12:36 -08:00
Justy Null
45aceace72
fix: disable renderer background when macOS effects are enabled
2025-12-15 10:12:11 -08:00
Justy Null
d40af61960
refactor: migrate background glass effect to new macos-background-style config
2025-12-15 10:10:51 -08:00
Justy Null
a02364cbef
feat: add liquid glass background effect support
2025-12-15 10:10:51 -08:00