Mitchell Hashimoto
1faca5972f
macos: change key window detection
2023-03-06 21:53:22 -08:00
Mitchell Hashimoto
1a3cd852f9
macos: massive reorg
2023-03-06 21:28:09 -08:00
Mitchell Hashimoto
1a4fabc2e5
macos: fix state handling of terminal surface in split
2023-03-06 10:40:08 -08:00
Mitchell Hashimoto
eef41aa6de
macos: window tracking cleans up observers properly
2023-03-06 10:19:08 -08:00
Mitchell Hashimoto
00cf9edc94
macos: working on splits
2023-03-05 14:23:25 -08:00
Mitchell Hashimoto
6854d09a8d
macos: get rid of delegates on our surface view
2023-03-05 13:41:35 -08:00
Mitchell Hashimoto
1fbbdd3fc7
macos: making the surface state get passed down...
2023-03-05 13:37:01 -08:00
Mitchell Hashimoto
b1d57cd500
macos: rename TerminalSurfaceView to TerminalSurface
2023-03-05 13:18:56 -08:00
Mitchell Hashimoto
2a40bdabca
macos: load config file default file locations
2023-03-03 09:01:13 -08:00
Mitchell Hashimoto
fc64dfa311
macos: on resize do not use the view frame
...
See the comment in the diff.
2023-02-26 17:26:17 -08:00
Mitchell Hashimoto
27e42855ca
macos: use GeometryReader for terminal size for macOS 12
...
We were using the NSView resize func before but this isn't called by
SwiftUI on macOS 12. Instead we wrap it in a GeometryReader and detect
the size change in updateNSView so we can call the proper ghostty
callback.
2023-02-22 20:49:33 -08:00
Mitchell Hashimoto
dc598a3dd7
macos: update minimum deployment target to macOS 12
2023-02-22 14:41:12 -08:00
Mitchell Hashimoto
01e8eb89d4
macos: remove unused vstack
2023-02-19 22:14:52 -08:00
Mitchell Hashimoto
873fb66907
macos: disable ApplePressAndHoldEnabled so that repeated key events work
2023-02-19 16:16:35 -08:00
Mitchell Hashimoto
1e09a1f2e1
macos: add settings view with a coming soon to help some people
2023-02-19 16:00:05 -08:00
Mitchell Hashimoto
c8665ec80e
macos: don't set cursor in mouseMoved
2023-02-19 15:29:25 -08:00
Mitchell Hashimoto
6ea5a5d22d
macos: set ibeam cursor within terminal view
2023-02-19 15:22:36 -08:00
Mitchell Hashimoto
dff45003e1
macos: hook up clipboards
2023-02-19 15:18:01 -08:00
Mitchell Hashimoto
8889dd7de2
macos: emoji keyboard works
2023-02-19 12:28:17 -08:00
Mitchell Hashimoto
7a5e3a4003
macos: stdbool missing so we can use bool in ghostty.h
2023-02-19 11:30:57 -08:00
Mitchell Hashimoto
f1ebc6953e
macos: mouse scroll events
2023-02-19 10:44:57 -08:00
Mitchell Hashimoto
1659f52175
macos: mouse button and mouse move events
2023-02-19 10:44:57 -08:00
Mitchell Hashimoto
e92d90b8d5
macos: new tab implementation
2023-02-19 10:44:57 -08:00
Mitchell Hashimoto
94e678ed57
macos: set correct title for surface title
2023-02-19 10:44:57 -08:00
Mitchell Hashimoto
7b0ddc8b70
set title callback needs to use surface userdata
2023-02-19 10:44:57 -08:00
Mitchell Hashimoto
c709467bee
macos: hook up change title events
2023-02-19 10:44:57 -08:00
Mitchell Hashimoto
6b450f7c7d
macos: track surface focus state
2023-02-19 10:44:57 -08:00
Mitchell Hashimoto
78754ff3ac
macos: clean up surface on close
2023-02-19 10:44:56 -08:00
Mitchell Hashimoto
7af516e7e6
embedded wakeup calls callback
2023-02-19 10:44:56 -08:00
Mitchell Hashimoto
7a368da099
macos: hook up text input
2023-02-19 10:44:56 -08:00
Mitchell Hashimoto
4b44b2bc95
c: fix enums for input
2023-02-19 10:44:56 -08:00
Mitchell Hashimoto
573b163636
start input, its broken but we're getting there
2023-02-19 10:44:56 -08:00
Mitchell Hashimoto
074664398a
macos: correct scale factor propagated
2023-02-19 10:44:56 -08:00
Mitchell Hashimoto
20f76a71ef
update size
2023-02-19 10:44:56 -08:00
Mitchell Hashimoto
cd77408efc
it draws!
2023-02-19 10:44:56 -08:00
Mitchell Hashimoto
ff9af8a07b
lots of progress running a surface but still crashes
2023-02-19 10:44:56 -08:00
Mitchell Hashimoto
6ceb5b847b
macos: terminal surface view
2023-02-19 10:44:55 -08:00
Mitchell Hashimoto
26182611c6
move allocator to global state
2023-02-19 10:44:55 -08:00
Mitchell Hashimoto
c438d72f13
macos: add ErrorView
2023-02-19 10:44:54 -08:00
Mitchell Hashimoto
9bd527fe00
macos: config API
2023-02-19 10:44:54 -08:00
Mitchell Hashimoto
9fcc9ce302
macos: add missing Preview Content folder
2023-02-19 10:44:54 -08:00
Mitchell Hashimoto
8b80e65928
lots of broken stuff
2023-02-19 10:44:54 -08:00
Mitchell Hashimoto
8fedbf84d4
macos: use xcodeproj
2023-02-19 10:44:53 -08:00
Mitchell Hashimoto
8035865596
build: ghostty lib, framework, build into app
2023-02-19 10:44:53 -08:00
Mitchell Hashimoto
81299fde9c
macos: empty window
2023-02-19 10:44:52 -08:00
Mitchell Hashimoto
b49634a57c
add TODO notes about arch
2023-02-19 10:44:52 -08:00
Mitchell Hashimoto
f2948fd6a6
macos: starting boilerplate
2023-02-19 10:44:52 -08:00