Mitchell Hashimoto
b35ba8982a
macos: add man pages to app bundle
2024-07-01 08:43:50 -07:00
Mitchell Hashimoto
6c01d20eb7
macos: add string extension
2024-06-30 14:58:28 -07:00
Qwerasd
d1ac0aff39
feat(macOS): Paste copied files as absolute paths.
...
Previously files would be pasted as only the filename. This commit
introduces an extension to NSPasteboard which provides a method to
consistently get the string contents of a pasteboard so that the
behavior can stay the same anywhere where we need to do that.
2024-03-07 20:53:48 -05:00
Pete Schaffner
3b6bac0121
Make special blending mode class more generic
...
This allows us to specify what kind of context we'd like our vibrant
layer to exist in (light or dark).
2024-02-11 00:53:18 +01:00
Mitchell Hashimoto
49cc5e2f47
Merge pull request #1483 from peteschaffner/improve-titlebar-tabs-background-color
...
Improve titlebar unselected tabs background color
2024-02-10 07:52:24 -08:00
Mitchell Hashimoto
0e482b8519
macos: nitpicks
2024-02-10 07:52:02 -08:00
Mitchell Hashimoto
a830675ec8
macos: copy fish resources into app bundle
...
Fixes #1492
2024-02-09 17:08:20 -08:00
Pete Schaffner
77e82b4d2a
Improve window buttons backdrop with window opacity
2024-02-09 22:46:49 +01:00
Pete Schaffner
8831c601a4
Use draw rect to do the "plus darker" blending
...
This is a lot simpler and doesn't require adding Obj-C into the mix.
2024-02-08 16:38:07 +01:00
Pete Schaffner
40cfa1abd4
Add CALayer subclass for use in titlebar tabs
...
It uses a private compositing filter to match what the sytem does to
color unselected tabs in the window's tab bar (specifically with a
light appearance).
2024-02-08 10:10:40 +01:00
Pete Schaffner
e00197c1bd
Add extensions to help finding private subviews
2024-02-07 11:10:43 +01:00
Qwerasd
308f8cce36
macOS: center window title when titlebar tabs enabled
...
Uses a custom toolbar that populates itself with a centered text field and provides a method to set the text.
2024-01-31 16:16:41 -05:00
Pete Schaffner
63cc7dbe0d
Move color extensions into OSColor
...
We are also now using the `darken(by:)` implementation to generate
the split divider color on macOS, which means we'll have a consistent
rendering across iOS and macOS.
2024-01-30 22:36:52 +01:00
Pete Schaffner
c248441057
Add ability to color the split divider on iOS
...
This adds the needed UIColor extensions to achieve the equivalent of
what we did on macOS
2024-01-30 14:31:25 +01:00
Pete Schaffner
375df57155
Tint split view divider based on theme background
2024-01-29 21:58:13 +01:00
Mitchell Hashimoto
487c22011c
macos: make SurfaceView cross-platform!
2024-01-18 19:28:36 -08:00
Mitchell Hashimoto
875a774d4b
macos: remove AppState and unify onto Ghostty.App cross-platform
2024-01-14 19:35:57 -08:00
Mitchell Hashimoto
a12ef43441
ci: specifically target the main Ghostty target
2024-01-14 19:06:01 -08:00
Mitchell Hashimoto
eba3d5414d
macos: Ghostty.Config to store all config-related operations
2024-01-14 15:53:33 -08:00
Mitchell Hashimoto
33b93799b9
macos: disable iOS file in macOS build
2024-01-14 15:00:00 -08:00
Mitchell Hashimoto
4d9fd2becc
macos: iOS app can initialize Ghostty
2024-01-14 14:44:16 -08:00
Mitchell Hashimoto
48af1c6c99
macos: add iOS target
2024-01-13 22:24:35 -08:00
Mitchell Hashimoto
2390668834
macos: encode surface tree in state restore
2023-12-23 13:15:46 -08:00
Mitchell Hashimoto
59f54a1d88
macos: initial window save/restore is working for frames only
2023-12-22 21:24:27 -08:00
Gregory Anders
f7033524ec
macos: add generated Vim plugin files to app bundle
2023-12-21 21:49:36 -06:00
Mitchell Hashimoto
fc897067a6
macos: reordering some files
2023-12-21 17:59:16 -08:00
Gregory Anders
18f2fb3fbd
macos: include ghostty subdirectory under Resources
...
This enables us to treat Ghostty's resources directory the same way
whether it is installed in a macOS app bundle or under e.g. /usr/share.
2023-12-21 17:56:57 -08:00
Mitchell Hashimoto
3762f8c342
macos: make default config ReleaseLocal
2023-12-20 14:37:48 -08:00
Leo Razoumov
d568ef5b97
fix(macos): ReleaseLocal build configuration with "Library Validation" disabled
...
Fixes #1133
MacOS: If ghostty build succeeds but it crashes at startup due to a library or framework failing
to load, build it with `xcodebuild -configuration ReleaseLocal`
2023-12-20 16:54:58 -05:00
Mitchell Hashimoto
25342f545b
macos: add update delegate so we can configure some behavior
2023-12-18 19:09:45 -08:00
Mitchell Hashimoto
caf6ebc6ef
macos: add Sparkle via Swift PM
2023-12-18 19:09:38 -08:00
Mitchell Hashimoto
2e74a0f9d4
macos: custom about window so we can be a first responder
...
Fixes #1052
This implements the about window as a custom window with a view
controller. This lets us implement the proper responder chain so that
our custom close window IBActions do the right thing.
This has an additional benefit that we can easily customize this window
going forward.
2023-12-17 15:51:04 -08:00
Mitchell Hashimoto
a6457c2c1c
macos: copy themes
2023-11-22 21:37:59 -08:00
Gregory Anders
86245ff0cf
macos: add option to prompt user for confirmation on OSC 52 commands
2023-11-10 23:12:39 -05:00
Mitchell Hashimoto
5f5f5a44ec
macos: paste protection boilerplate
2023-11-04 20:15:39 -07:00
Mitchell Hashimoto
60713b46e9
macos: terminal window must subclass nswindow to receive events
...
Fixes #788
2023-11-02 22:00:33 -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
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
981efb11db
macos: add HostingWindow helper
2023-10-30 09:06:23 -07: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
69cc6d11dc
macos: MetalView, render an MTKView
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
a040e807e8
macos: implement service provider
2023-10-04 12:11:23 -07:00
Mitchell Hashimoto
f987a36fce
macos: escape shell-sensitive characters on filepath drop
2023-10-04 10:49:32 -07:00
Mitchell Hashimoto
cdbf16e13b
macos: set env var for app bundle to detect app launch vs CLI
2023-09-20 11:10:46 -07:00
Mitchell Hashimoto
423e55ce0f
macos: change executale name to "ghostty" (lowercase)
...
This way we can also put this on the PATH and use it as a CLI...
2023-09-20 10:13:12 -07:00
Mitchell Hashimoto
db799d53e6
macos: UI for configuration errors
2023-09-11 13:21:13 -07:00
Mitchell Hashimoto
52396304ff
macos: begin syncing menuitem key equivalents
2023-08-30 22:45:29 -07:00