Mitchell Hashimoto
6504a67f0b
macos: set proper cascade point when closing tab in window
...
Fixes #745
2023-10-27 14:56:30 -07:00
Gregory Anders
4681b95bb3
macos: force new window for "New Window" action
...
There is a setting in the macOS System Preferences called "Prefer tabs
when opening documents" (accessed through the userTabbingPreference
field of NSWindow) which, when set to "Always", makes the "New Window"
action open windows in tabs.
Ideally, this setting would be controlled on a per-app basis in macOS,
but unfortunately that is not the case. Because Ghostty explicitly
offers both "New Tab" and "New Window" actions, this user setting should
be ignored when creating new windows.
2023-10-09 09:20:52 -05:00
Mitchell Hashimoto
96b8fbb84d
macos: support dropping folder with window
2023-10-03 22:07:58 -07:00
Mitchell Hashimoto
d5299fec25
macos: use SurfaceConfiguration everywhere instead of bare c struct
2023-10-03 22:00:56 -07:00
Mitchell Hashimoto
0e4b91de88
macos: stylistic changes
2023-09-28 08:34:27 -07:00
Gregory Anders
137d24db9c
macos: display keybinding instead of index in tab label
2023-09-28 08:28:46 -07:00
Gregory Anders
8f75e83958
macos: rename indexTabs() to relabelTabs()
...
This is a better name because the tab label may not necessarily be an
index (if a user binds some non-numeric key, for instance).
2023-09-28 08:28:46 -07:00
Gregory Anders
59ba6fac2b
macos: add tab index labels
2023-09-28 08:28:46 -07:00
Mitchell Hashimoto
5f30223e84
macos: new window assertion is unnecessary
...
We handle both cases
2023-09-10 09:03:53 -07:00
Mitchell Hashimoto
8619351df7
macos: dock menu
2023-09-08 11:37:56 -07:00
Thorsten Ball
be114e792f
macOS: fix cascading windows when using tabs and closing windows
...
This fixes two things:
1. Issue #294 : cascade point for new windows is set when creating new tabs
2. Cascade point was *not* reset when closing windows, which lead to a
big "gap" appearing when, say, opening 5 windows, closing 4, opening
a new window.
2023-08-19 20:21:20 +02:00
Thorsten Ball
a76aea4d0a
macOS: new split can inherit font size
2023-08-19 09:59:04 +02:00
Thorsten Ball
2e9b787668
macOS: new window can inherit font size
...
This is the second part of #281 and adds the same mechanism that was
added for tabs in #296 for windows.
It works exactly the same way.
2023-08-19 09:29:56 +02:00
Mitchell Hashimoto
79971c62a6
macos: pass around a base surface_config_s rather than a new tab
2023-08-18 09:09:43 -07:00
Thorsten Ball
12311e9707
macOS: simplify code for new tab
2023-08-18 06:26:15 +02:00
Thorsten Ball
3e7c4475a1
macOS: move newTab code to PrimaryWindowManager
2023-08-17 20:57:00 +02:00
Thorsten Ball
d2dae7a696
macOS: inherit font size when creating new tab
...
This is one part of #281 .
2023-08-17 20:56:56 +02:00
Mitchell Hashimoto
7c98f991db
macos: new tab menu/shortcut works even if no windows are present
2023-08-04 17:45:57 -07:00
Mitchell Hashimoto
8c01160afa
macos: "+" button ensures tab is added to same window group
2023-08-04 17:39:40 -07:00
Mitchell Hashimoto
bb7c67b967
macos: implement newWindowForTab for "+" button
2023-08-04 17:35:57 -07:00
Mitchell Hashimoto
bf190ba442
macos: merge AppController and AppDelegate, organize groups
2023-08-04 17:05:52 -07:00