Mitchell Hashimoto
b4c973cd23
macos: improved comments
2023-10-30 15:15:56 -07:00
Mitchell Hashimoto
b010875176
macos: do not need base config
2023-10-30 14:59:19 -07:00
Mitchell Hashimoto
7fe6f15d2d
macos: only show alert once
2023-10-30 14:56:59 -07:00
Mitchell Hashimoto
350a9da68b
macos: confirm quit with splits, tab
2023-10-30 14:50:54 -07:00
Mitchell Hashimoto
1fcc5812be
macos: detect when surface tree becomes empty
2023-10-30 14:46:28 -07:00
Mitchell Hashimoto
c18cf207d6
macos: rename all the 2-suffix
2023-10-30 14:40:45 -07:00
Mitchell Hashimoto
f6d98ae40f
macos: delete Ghostty.SplitView
2023-10-30 14:39:26 -07:00
Mitchell Hashimoto
b40245f01d
macos: remove old primary window stuff
2023-10-30 14:36:20 -07:00
Mitchell Hashimoto
c86faa37c2
macos: terminal controller owns split data
2023-10-30 14:31:04 -07:00
Mitchell Hashimoto
1b0fea044f
macos: move debug view
2023-10-30 12:01:10 -07:00
Mitchell Hashimoto
05fd3f25b3
macos: clear content view on window close
2023-10-30 11:58:23 -07:00
Mitchell Hashimoto
ed1741730e
macos: base config plumbed through
2023-10-30 11:53:05 -07:00
Mitchell Hashimoto
61451942e8
macos: implement last surface close to close window
2023-10-30 09:53:59 -07:00
Mitchell Hashimoto
481d128405
macos: tab labels, detect window close
2023-10-30 09:50:52 -07:00
Mitchell Hashimoto
8a03dcbb5b
macos: goto tab works
2023-10-30 09:24:06 -07:00
Mitchell Hashimoto
b8a24e8bba
macos: toggle fullscreen
2023-10-30 09:19:13 -07:00
Mitchell Hashimoto
bee0f25d54
macos: new terminal view new tab/window
2023-10-30 09:06:24 -07:00
Mitchell Hashimoto
704c303cd1
macos: working on the new terminalmanager
2023-10-30 09:06:24 -07:00
Mitchell Hashimoto
3018377389
macos: wip
2023-10-30 09:06:24 -07:00
Mitchell Hashimoto
0ca69cbc98
macos: update xib version
2023-10-30 09:06:23 -07:00
Mitchell Hashimoto
cd18f3455b
macos: add needsConfirmQuit helper to surface and split structs
2023-10-30 09:06:23 -07:00
Mitchell Hashimoto
981efb11db
macos: add HostingWindow helper
2023-10-30 09:06:23 -07:00
Mitchell Hashimoto
c28a0e9ef0
macos: SplitNode must be hashable to detect change
...
Fixes #761
SplitNode not being hashable meant that when it was set to a value of
the same enum case, SwiftUI could not detect a change for re-render.
2023-10-29 17:39:07 -07:00
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
9d2d9ca7a3
maacos: update doc comment for PrimaryView.window
2023-10-27 10:07:15 -05:00
Gregory Anders
add2b675bd
config: add window-step-resize option
2023-10-27 09:33:56 -05:00
Gregory Anders
0f73bf32e6
macos: document SurfaceView.cellSize property
2023-10-27 09:23:17 -05:00
Gregory Anders
2ee80a52df
macos: set window resizeIncrements when cell size changes
...
The resizeIncrements property is only modified when the cell size of the
focused window changes. If two splits have the same cell size then the
property is not modified when focusing between the two splits.
2023-10-26 20:27:58 -05:00
Mitchell Hashimoto
be46bea40f
macos: fix warning from xcode
2023-10-26 14:45:55 -07:00
Mitchell Hashimoto
1696cf76b6
macos: free inspector when it is hidden
2023-10-25 09:09:10 -07:00
Mitchell Hashimoto
fc549978b9
macos: update inspector size in draw call
2023-10-24 15:27:16 -07:00
Mitchell Hashimoto
5e2bed62b3
macos: terminal inspector control
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
29bbcbbf92
core: add input binding to control terminal inspector
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
92d172377e
macos: don't do full surface-style key translation for imgui
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
b2fd3fae6c
macos: proper title when focusing the inspector
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
52ccef3b8e
macos: only re-render the inspector when requested
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
d50ff6ece7
macos: complete cimgui events
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
2c40183c3c
macos: rendering basic imgui
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
f15aaf3b9e
macos: use a MTKView subclass for the inspector
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
69cc6d11dc
macos: MetalView, render an MTKView
2023-10-24 15:27:14 -07:00
Jon Parise
d63c0df582
macos: always apply initial size to new windows
...
We would previously exit early for non-transparent windows, which
skipped the call to setInitialWindowSize().
2023-10-21 08:21:58 -07:00
Jon Parise
17b63f7617
config: add quit-after-last-window-closed
...
Whether or not to quit after the last window is closed. This defaults
to false. Currently only supported on macOS.
2023-10-18 14:03:32 -07:00
Mitchell Hashimoto
4341428c18
macos: make xcode 14 compatible, do not use switch expr
2023-10-16 20:05:32 -07:00
Gregory Anders
f966a5a163
macos: add menu items to modify font size
...
Add a new "View" menu to the menu bar with items to increase, decrease,
or reset the font size.
2023-10-16 20:32:33 -05:00
Mitchell Hashimoto
6990c1572a
macos: insertText should not include null char
2023-10-14 21:06:34 -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
a040e807e8
macos: implement service provider
2023-10-04 12:11:23 -07:00
Mitchell Hashimoto
5018bd42c8
macos: localize the permission strings
2023-10-04 11:22:07 -07:00
Mitchell Hashimoto
f987a36fce
macos: escape shell-sensitive characters on filepath drop
2023-10-04 10:49:32 -07:00
Mitchell Hashimoto
2aacf6e130
macos: support dropping file urls onto surfaces
2023-10-04 08:01:13 -07:00