1696 Commits

Author SHA1 Message Date
Mitchell Hashimoto
4b57a715b0 terminal: clean up duplicate states in parse table 2023-03-17 14:07:24 -07:00
Mitchell Hashimoto
38cd496c82 terminal: add missing anywhere states to ground, get rid of real state 2023-03-17 13:46:59 -07:00
Mitchell Hashimoto
f5e49e2989 apprt/gtk: copy the app id because we need to own it according to docs 2023-03-17 12:03:58 -07:00
Mitchell Hashimoto
afc1ac5321 apprt/gtk: add more debug logs about scale factors 2023-03-17 11:25:23 -07:00
Mitchell Hashimoto
a5bef24537 Merge pull request #107 from mitchellh/trip-crash
terminal: selectLine can select last line with scrollback
2023-03-17 11:09:13 -07:00
Mitchell Hashimoto
54d6654d8b terminal: selectLine can select last line with scrollback
We had incorrect logic around when the line you want to select is the
last line and it crashed. A new test case covers this.
2023-03-17 11:07:43 -07:00
Mitchell Hashimoto
b0cb46dab9 linux copy/paste defaults to ctrl+shift+c/v 2023-03-16 23:27:21 -07:00
Mitchell Hashimoto
f16a5ff545 Merge pull request #106 from mitchellh/linux-font
font/freetype: add a 1px border to each glyph in the texture atlas
2023-03-16 23:13:50 -07:00
Mitchell Hashimoto
20f9e98894 font/freetype: add a 1px border to each glyph in the texture atlas 2023-03-16 22:54:21 -07:00
Mitchell Hashimoto
cb80daa1b2 Merge pull request #104 from mitchellh/linux-keys
Use proper Linux default keybindings for already configured keys
2023-03-16 22:09:34 -07:00
Mitchell Hashimoto
0744e504e1 Use proper Linux default keybindings
These are just different from macOS. I've looked at various Linux
terminals and there seems to be some general consensus around this.
2023-03-16 21:59:17 -07:00
Mitchell Hashimoto
53d82d71a4 apprt/gtk: make compatible with GTK < 2.74 2023-03-16 16:38:00 -07:00
Mitchell Hashimoto
6fb880a418 Update README.md 2023-03-16 09:04:17 -07:00
Mitchell Hashimoto
996ccfbf73 Merge pull request #98 from mitchellh/macos-cpu2
macos: free surface as soon as split is closed, properly track focus state
2023-03-15 21:35:19 -07:00
Mitchell Hashimoto
c01e8337bd macos: reliable window focus tracking for surface 2023-03-15 21:29:20 -07:00
Mitchell Hashimoto
363a03a30d macos: explicitly free surface resource on split/tab close
We don't wait for Swift to garbage collect. We just free the expensive
stuff (our surface) immediately.
2023-03-15 21:11:52 -07:00
Mitchell Hashimoto
04b1625a68 ghostty.h: fix type usage before declaration 2023-03-15 15:55:52 -07:00
Mitchell Hashimoto
65ac1b302f Merge pull request #97 from mitchellh/macos-cpu
macos: update libxev to fix idle CPU usage to 0% in certain scenarios
2023-03-15 15:10:31 -07:00
Mitchell Hashimoto
a54d78a380 update libxev
This includes a critical fix to kqueue mach ports which lowers CPU usage
considerably during busy periods for Ghostty.
2023-03-15 15:05:30 -07:00
Mitchell Hashimoto
a6b43fa694 macos: set default window size on macOS 13+ 2023-03-15 15:03:45 -07:00
Mitchell Hashimoto
bcbf85b35f Merge pull request #95 from mitchellh/nix-patchelf
build: detect NixOS build outside of Nix shell env, auto patch rpath
2023-03-13 11:18:20 -07:00
Mitchell Hashimoto
8e8aabf4c0 build.zig: detect build outside of Nix environment and provide warning 2023-03-13 11:12:12 -07:00
Mitchell Hashimoto
d99cc0aec1 build.zig: automatically patchelf the rpath when in a nix shell 2023-03-13 10:59:30 -07:00
Mitchell Hashimoto
d114f95165 clean up some of the nix package building 2023-03-13 10:12:32 -07:00
Mitchell Hashimoto
58d89b6bb3 apprt/glfw: add logging with error information when glfw init fails 2023-03-12 17:27:33 -07:00
Mitchell Hashimoto
64da1b993d Merge pull request #92 from mitchellh/split-nav
macos: split keyboard navigation up/down/left/right and previous/next
2023-03-11 17:58:32 -08:00
Mitchell Hashimoto
3976da8149 macos: navigate splits directionally 2023-03-11 17:55:31 -08:00
Mitchell Hashimoto
04c38ef3b0 macos: change focus callback to use an enum so we can get other dirs 2023-03-11 17:44:00 -08:00
Mitchell Hashimoto
18cf0dc9fc macos: put next/prev split focus into menu 2023-03-11 17:25:39 -08:00
Mitchell Hashimoto
4a5d92056f macos: hook up previous/next split focus 2023-03-11 17:02:01 -08:00
Mitchell Hashimoto
b582691185 macos: hook up all the bindings so we're ready to handle focus event 2023-03-11 16:22:04 -08:00
Mitchell Hashimoto
7dd76105ad update README 2023-03-10 22:26:06 -08:00
Mitchell Hashimoto
fa55d7088e update Zig version 2023-03-10 22:20:29 -08:00
Mitchell Hashimoto
d6ad49a1b2 Merge pull request #89 from mitchellh/macos-splits
macOS Splits
2023-03-10 15:32:30 -08:00
Mitchell Hashimoto
a356c62105 macos: properly lose focus on previous split when new split 2023-03-10 15:31:48 -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
dc6e5e1437 macos: fix bug where like... 5 terminals were being launched in the
background
2023-03-09 11:40:47 -08:00
Mitchell Hashimoto
bfbd7f1c1b macos: terminal split views handle nested close properly 2023-03-09 11:07:12 -08:00
Mitchell Hashimoto
31378bcaa5 macos: redo all the split views 2023-03-08 22:14:29 -08:00
Mitchell Hashimoto
0388dc35bb macos: set proper window title for focused split 2023-03-08 15:26:58 -08:00
Mitchell Hashimoto
c0315e72f1 macos: nil bottomright when we close it 2023-03-08 15:08:42 -08:00
Mitchell Hashimoto
6c857877e8 apprt/embedded: close surface callback 2023-03-08 15:05:15 -08:00
Mitchell Hashimoto
fa9ee0815f apprt/embedded: newSplit callback 2023-03-08 14:56:50 -08:00
Mitchell Hashimoto
8ce6f349f8 input: new_split binding, can parse enums 2023-03-08 08:57:38 -08:00
Mitchell Hashimoto
15b7e7fcd7 termio: coalesce resize events
On macOS, we were seeing resize events dropped by child processes if
too many SIGWNCH events were generated.
2023-03-08 08:43:42 -08:00
Mitchell Hashimoto
a754fe8c30 macos: little tweaks 2023-03-07 22:09:39 -08:00
Mitchell Hashimoto
508277f823 macos: fix focus on split change 2023-03-07 21:37:36 -08:00
Mitchell Hashimoto
e07a4e6892 macos: comment my split view 2023-03-07 17:04:12 -08:00