3956 Commits

Author SHA1 Message Date
Chris Marchesi
f1bb1ab6c9 nix: update flake.lock for nixpkgs-zig-0-12
This updates the lockfile for nixpkgs-zig-0-12 so that the latest zig is
used for building the nix package.

Note that as per history on this topic, this currently only affects the
nix package (packages.ghostty), not the devShell.
2023-12-01 11:05:34 -08:00
Mitchell Hashimoto
9a4d69b61f Merge pull request #975 from gpanders/cursor-pointer
Preserve cursor shape when over a link
2023-12-01 08:35:44 -08:00
Gregory Anders
b448501bf4 Preserve cursor shape when over a link
If mouse events are active and the cursor is hovered over a link,
pressing Shift does not change the cursor to a pointer, but to the text
selection shape, until the cursor is moved again. The pointer shape
should have higher priority over the text selection shape when the
cursor is hovered over a pointer.
2023-12-01 10:06:27 -06:00
Mitchell Hashimoto
3919530a09 Merge pull request #969 from vancluever/vancluever-fix-x11-window-class
gtk: make sure WM_CLASS is being set on X11
2023-11-30 21:40:53 -08:00
Chris Marchesi
1832401e0e gtk: make sure WM_CLASS is being set on X11
This ensures that WM_CLASS is being set on X11, looks like this was
missed in #816 (not 100% sure if it always needs to be set in GDK or if
it's a side effect of us not using g_application_run).

This also adds the "x11-instance-name" config attribute to control the
instance name, which defaults to "ghostty" (or "ghostty-debug" on debug
builds).
2023-11-30 20:26:12 -08:00
Mitchell Hashimoto
f974a6f55d Merge pull request #953 from der-teufel-programming/update_once_more
Update to latest master
2023-11-30 14:17:46 -08:00
Mitchell Hashimoto
2d8620e47e nix: update cache hash 2023-11-30 14:07:14 -08:00
Mitchell Hashimoto
8f5f8fb0bd update Zig version in Nix 2023-11-30 14:06:24 -08:00
Krzysztof Wolicki
073868888c Fix forgotten openIterableDir 2023-11-30 22:04:34 +01:00
Krzysztof Wolicki
9238bdb4da Fix src/Surface.zig
Change fastmem.copy to use memcpy builtin
2023-11-30 21:58:14 +01:00
Krzysztof Wolicki
bfc688e96e Update required zig version to 0.12.0-dev.1767+1e42a3de8 2023-11-30 21:41:42 +01:00
Krzysztof Wolicki
0750698b62 Update to latest master,
update libxev dependency,
change mach_glfw to an updated fork until upstream updates
2023-11-30 21:41:33 +01:00
Mitchell Hashimoto
ffcdbca21b Merge pull request #973 from vancluever/vancluever-rectangle-select
Add rectangle select
2023-11-30 12:40:05 -08:00
Krzysztof Wolicki
46699d53d1 Update to latest master 2023-11-30 21:40:01 +01:00
Chris Marchesi
b84fb25e55 Add rectangle select
This adds rectangle select mode; when dragging with ctrl+alt (or
super+alt on MacOS), this allows you to select a rectangular region of
the terminal instead of the full start-end points of the buffer.
2023-11-30 12:35:52 -08:00
Mitchell Hashimoto
e27eb727c4 Merge pull request #972 from mitchellh/claer-screen
termio: clear_screen binding does not trigger scrollback preservation
2023-11-30 12:33:27 -08:00
Mitchell Hashimoto
810242b472 termio: clear_screen binding does not trigger scrollback preservation
Fixes #970
2023-11-30 12:32:35 -08:00
Mitchell Hashimoto
ee08346dfe Merge pull request #968 from mitchellh/urls
Clickable URLs
2023-11-30 12:15:55 -08:00
Mitchell Hashimoto
e5380822ea Merge pull request #956 from rockorager/fix-associated-text
key-encode: only set associated text when there is printable text
2023-11-29 21:38:16 -08:00
Mitchell Hashimoto
bc7643eae9 input: update preventsText comment 2023-11-29 21:36:10 -08:00
Mitchell Hashimoto
659b43de37 input: Kitty encoding suppress associated text on macOS with alt 2023-11-29 21:34:30 -08:00
Mitchell Hashimoto
eac1731d9d apprt/gtk: translate modifier-only presses to proper modifier state 2023-11-29 20:37:56 -08:00
Mitchell Hashimoto
2d2495350f core: on mod change, rerun cursor pos callback 2023-11-29 18:44:22 -08:00
Mitchell Hashimoto
e6f7fb76a8 config: ability to disable URL matching 2023-11-29 16:50:26 -08:00
Mitchell Hashimoto
be1be2c64d core: only process link detection on cursor pos if cell changes 2023-11-29 15:54:13 -08:00
Mitchell Hashimoto
9326e21339 nix: update cache hash 2023-11-29 15:30:46 -08:00
Mitchell Hashimoto
bb60d2c1c0 renderer/opengl: urls 2023-11-29 15:30:23 -08:00
Mitchell Hashimoto
c66273e91c input: better docs on links 2023-11-29 15:30:23 -08:00
Mitchell Hashimoto
0938a0d638 core: handle URL clicking properly with shift-escaping mouse events 2023-11-29 15:30:23 -08:00
Mitchell Hashimoto
056e96748a core: don't crash if link processing fails 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
995e4e3757 os: open 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
dcbe0b8a5f core: only update mouse hover point when no other mouse action 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
8fcf3f08dd core: send mouse hover point 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
3a599ec7df renderer: link sets handle hover links 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
b94c607256 renderer: matchset tests 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
5a7596e1b1 renderer: link set for more efficient matching 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
172a91e95d core: change mouse cursor over link 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
20cc369561 core: detect link click 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
aa86031ff6 terminal: move line searching here, unit test 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
be05c3af53 input: add Link 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
5db002cb12 renderer/metal: underline urls 2023-11-29 15:30:21 -08:00
Mitchell Hashimoto
c7ccded359 terminal: Screen.getLine 2023-11-29 15:30:07 -08:00
Mitchell Hashimoto
3aba42c3f7 terminal: stringmaps 2023-11-29 15:30:07 -08:00
Mitchell Hashimoto
0487dbfb25 terminal: selectionString uses arraylist to build results 2023-11-29 15:30:07 -08:00
Mitchell Hashimoto
7fc95690bc terminal: basic lineIterator on screen 2023-11-29 15:30:07 -08:00
Mitchell Hashimoto
af04d891ff build: dynamically link oniguruma 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto
b85174c7ac build: add oniguruma 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto
27585ae18a pkg/oniguruma: better regex api 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto
364020973c pkg/oniguruma: search 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto
4d3c7212d8 pkg/oniguruma: init regex object 2023-11-29 15:29:43 -08:00