Mitchell Hashimoto
f0bf0fd888
config: window-save-state
2023-12-22 21:51:06 -08:00
Mitchell Hashimoto
7600c761ef
fix callback struct ordering, use internal_os.open
2023-12-18 08:00:40 -08:00
Borja Clemente
646e3c365c
Add settings shortcut on MacOS
...
- Settings shortcut opens the config file in the default editor.
Signed-off-by: Borja Clemente <borja.clemente@gmail.com>
2023-12-17 16:19:22 +01:00
Gregory Anders
86b7442f3c
macos: implement desktop notifications
2023-11-15 11:21:30 -06:00
Gregory Anders
54a489eefa
macos: remove optional from Ghostty.AppState.surfaceUserdata
...
The return value of takeUnretainedValue() is non-optional, so this
function was never _actually_ returning an optional value, so the guard
clauses sprinkled throughout were unnecessary.
2023-11-15 10:36:45 -06:00
Mitchell Hashimoto
2489ef4c13
stylistic tweaks
2023-11-11 15:15:52 -08:00
Gregory Anders
98b43007a0
core: use ClipboardRequestType instead of ClipboardPromptReason
...
Instead of making a separate enum that must be translated from the
ClipboardRequest type, simply re-use ClipboardRequest to determine the
clipboard confirmation reason.
2023-11-10 23:12:39 -05:00
Gregory Anders
86245ff0cf
macos: add option to prompt user for confirmation on OSC 52 commands
2023-11-10 23:12:39 -05:00
Gregory Anders
cd01340cce
macos: add key binding for equalizing split sizes
2023-11-07 16:23:28 -06:00
Mitchell Hashimoto
4e3ab4879d
Merge pull request #822 from gpanders/split-resizing
...
macos: implement split resizing
2023-11-06 09:35:43 -08:00
Mitchell Hashimoto
f8b0654a19
Merge pull request #816 from Raiden1411/feat/options
...
feat: add support for `--fullscreen`, `--title` and `--class` values
2023-11-06 08:55:33 -08:00
Mitchell Hashimoto
efe9721c98
macos: honor fullscreen setting
2023-11-06 08:52:36 -08:00
Gregory Anders
582df33083
macos: use Ghostty.AppState as @EnvironmentObject
...
This is a small cleanup change. This provides the Ghostty.AppState
object to any view that needs it within the TerminalSplit view hierarchy
without needing to explicitly define EnvironmentKeys.
2023-11-05 20:42:59 -06:00
Gregory Anders
9b14398153
macos: support resizing splits
2023-11-05 20:42:59 -06:00
Mitchell Hashimoto
ef44551522
apprt/embedded: hook up paste confirmation
2023-11-05 09:20:16 -08:00
Gregory Anders
add2b675bd
config: add window-step-resize option
2023-10-27 09:33:56 -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
29bbcbbf92
core: add input binding to control terminal 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
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
d5299fec25
macos: use SurfaceConfiguration everywhere instead of bare c struct
2023-10-03 22:00:56 -07:00
Mitchell Hashimoto
a1a8aeb104
initial window size needs to take into account window chrome
2023-09-30 21:35:50 -07:00
Mitchell Hashimoto
57213547cd
macos: custom fullscreen menu item to respect non-native fullscreen
...
Related to #392
2023-09-27 18:34:04 -07:00
Mitchell Hashimoto
f4886bb80e
macos: read from clipboard uses UTF-8 encoded string, proper byte count
2023-09-25 17:26:23 -07:00
Mitchell Hashimoto
960edee559
macos: background-opacity getter
2023-09-20 22:05:23 -07:00
Mitchell Hashimoto
3ad39dd5e4
macos: sync NSAppearance for app based on window-theme setting
2023-09-20 21:54:50 -07:00
Mitchell Hashimoto
5a02635d2c
macos: async style clipboard reading
2023-09-19 10:36:17 -07:00
Mitchell Hashimoto
d911c49f44
macos: remove unnecessary call
2023-09-17 12:01:36 -07:00
SoraTenshi
833be445ba
Spawn alert box on new tab if decorations disabled
...
Stray spaces
Fix check for windowDecoration
2023-09-17 11:58:11 -07:00
Mitchell Hashimoto
2b380ad37e
macos: stylistic changes
2023-09-17 11:57:36 -07:00
Mitchell Hashimoto
f8fea2f65b
macos: show warning in debug mode
2023-09-15 15:40:41 -07:00
Mitchell Hashimoto
724900f143
macos: implement setCursorVisibility
2023-09-14 19:37:30 -07:00
Mitchell Hashimoto
cb2931cb27
rename cursor shape to mouse shape for OSC 22
2023-09-14 11:12:17 -07:00
Mitchell Hashimoto
3356146bb4
macos: support cursor style
2023-09-14 10:40:40 -07:00
Mitchell Hashimoto
c1fe1f6646
macos: AppState config must be published and observed
...
Fixes #440
We previously weren't observing changes so they weren't being
automatically propagated. We were using an old pointer which at best
returned the wrong value and at worst crashed. I was able to make it
crash eventually, too.
This changes the fields to be properly published and observed and as a
result the config is immediately available to all users.
2023-09-13 15:06:41 -07:00
Mitchell Hashimoto
999d17c49d
macos: integrate needsConfirmQuit to quit if all windows are at prompt
2023-09-11 15:44:28 -07:00
Mitchell Hashimoto
2f0905b60c
macos: reload config MUST go through Zig core
2023-09-11 15:20:31 -07:00
Mitchell Hashimoto
711e3a5043
macos: add reload configuration to the Ghostty menu bar
2023-09-11 13:49:20 -07:00
Mitchell Hashimoto
db799d53e6
macos: UI for configuration errors
2023-09-11 13:21:13 -07:00
Mitchell Hashimoto
f0ee2fb454
macos: log configuration errors
2023-09-11 09:39:58 -07:00
Mitchell Hashimoto
2b04a7114b
macos: use the configured unfocused split opacity
2023-09-10 18:52:40 -07:00
Mitchell Hashimoto
ef5c5d1c0b
macos: add split zoom to menu
2023-09-10 09:30:42 -07:00
Mitchell Hashimoto
4570356e57
turn zoom into a toggle rather than an explicit zoom/unzoom
2023-09-02 16:03:51 -07:00
Mitchell Hashimoto
70bdc21d22
macos: support zoomed splits
2023-09-02 15:51:10 -07:00
Will Pragnell
86122624e0
macos: add visible-menu non-native-fullscreen option
2023-09-01 21:45:45 -07:00
Mitchell Hashimoto
b7508cdc66
macos: setup delegate for app state, config reload callback
2023-08-31 11:56:15 -07:00
Mitchell Hashimoto
c71979804e
apprt/embedded: ghostty_surface_binding_action can now run any action
2023-08-30 21:46:38 -07:00
Thorsten Ball
a76aea4d0a
macOS: new split can inherit font size
2023-08-19 09:59:04 +02:00