37 Commits

Author SHA1 Message Date
Mitchell Hashimoto
eebcbb6955 macos: attach gotoTab listener to contentView and filter on focused win 2023-07-01 09:19:38 -07:00
Thorsten Ball
6ff3f62e3a macOS: implement cmd+[0-9] to goto tab
This is my attempt at fixing #63. It works! But:

1. The `NotificationCenter` subscription is triggered once for every
   open tab. That's obviously wrong. But I'm not sure and could use some
   pointers where else to put the subscription. That leads me to...
2. I'm _not_ knowledgable in Swift/AppKit/SwiftUI, so I might have put
   the wrong/right things in the wrong/right places. For example: wasn't
   sure what's to be handled in Swift and what's to be handled by the
   core in Zig.

Would love some pointers :)
2023-07-01 09:08:02 -07:00
Mitchell Hashimoto
472958fd12 macos: don't block shutdown/restart on confirmation 2023-05-19 08:27:19 -07:00
Mitchell Hashimoto
41943b9a00 macos: quit if we have no visible windows 2023-03-27 10:05:29 -07:00
Mitchell Hashimoto
92870e4e60 macos: confirm on quit 2023-03-27 09:41:00 -07:00
Mitchell Hashimoto
8fa5a9d299 macos: Cmd+W closes settings window if focused 2023-03-26 10:43:57 -07:00
Mitchell Hashimoto
a6b43fa694 macos: set default window size on macOS 13+ 2023-03-15 15:03:45 -07:00
Mitchell Hashimoto
3976da8149 macos: navigate splits directionally 2023-03-11 17:55:31 -08:00
Mitchell Hashimoto
18cf0dc9fc macos: put next/prev split focus into menu 2023-03-11 17:25:39 -08:00
Mitchell Hashimoto
f85c1c256c macos: menu bar to split 2023-03-10 15:24:45 -08:00
Mitchell Hashimoto
0aadd19282 macos: close surface works 2023-03-10 14:44:33 -08:00
Mitchell Hashimoto
a265e7ce20 macos: take over menu bar, separate close and close window 2023-03-10 14:27:55 -08:00
Mitchell Hashimoto
a754fe8c30 macos: little tweaks 2023-03-07 22:09:39 -08:00
Mitchell Hashimoto
e07a4e6892 macos: comment my split view 2023-03-07 17:04:12 -08:00
Mitchell Hashimoto
4bbb419cb0 macos: use my new split view 2023-03-07 16:51:26 -08:00
Mitchell Hashimoto
06d770fefa macos: SplitView dragging 2023-03-07 16:36:56 -08:00
Mitchell Hashimoto
d00794de8e macos: working on custom split view 2023-03-07 16:22:00 -08:00
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
00cf9edc94 macos: working on splits 2023-03-05 14:23:25 -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
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
dff45003e1 macos: hook up clipboards 2023-02-19 15:18:01 -08:00
Mitchell Hashimoto
e92d90b8d5 macos: new tab implementation 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
7af516e7e6 embedded wakeup calls callback 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
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