8176 Commits

Author SHA1 Message Date
Mitchell Hashimoto
5f2e341d89 apprt/gtk: prefer X11 backend on GTK 4.14 (#2893)
I'm unsure if this is an environmental issue just for me or if this is
more widespread or what other downsides this may have. I'm more than
willing to revert this if it ends up causing different issues.

I found that with NixOS 24.11 and GTK 4.14 on my system, the default
Wayland GDK backend fails to initialize EGL. With GTK 4.16 everything is
fine.

If I force X11 then everything also works fine. This commit forces X11
for GTK 4.14 specifically (4.16+ is allowed to use Wayland).
2024-12-05 11:37:11 -08:00
Mitchell Hashimoto
bb185cf6b6 apprt/gtk: force X11 backend on GTK 4.14
I'm unsure if this is an environmental issue just for me or if this is
more widespread or what other downsides this may have. I'm more than
willing to revert this if it ends up causing different issues.

I found that with NixOS 24.11 and GTK 4.14 on my system, the default
Wayland GDK backend fails to initialize EGL. With GTK 4.16 everything
is fine.

If I force X11 then everything also works fine. This commit forces X11
for GTK 4.14 specifically (4.16+ is allowed to use Wayland).
2024-12-05 11:26:46 -08:00
Mitchell Hashimoto
711f94776e Merge pull request #2885 from ghostty-org/search
Naive search internals (core only)
2024-12-04 13:48:10 -08:00
Mitchell Hashimoto
7dd8e7c43f remove unused file 2024-12-04 12:48:04 -08:00
Mitchell Hashimoto
50b36c5d86 comments 2024-12-04 12:38:40 -08:00
Mitchell Hashimoto
b9dda6ad87 terminal: PageListSearch works! 2024-12-04 12:30:14 -08:00
Mitchell Hashimoto
6361bf47f7 terminal: update comments/docs on sliding window search 2024-12-04 11:25:25 -08:00
Mitchell Hashimoto
34fb840cf9 terminal: search match on overlap case 2024-12-04 11:16:45 -08:00
Mitchell Hashimoto
852e04fa00 terminal: test for match in second slice of circ buf 2024-12-04 10:58:38 -08:00
Mitchell Hashimoto
af1ee4d95f terminal: search match across page boundary 2024-12-04 10:36:22 -08:00
Mitchell Hashimoto
79026a1148 terminal: test no match pruning 2024-12-03 15:55:18 -08:00
Mitchell Hashimoto
09e4cccd2c terminal: remove unused pagesearch 2024-12-03 15:53:13 -08:00
Mitchell Hashimoto
b487aa8e1f terminal: search across two pages and pruning appears to be working 2024-12-03 15:53:12 -08:00
Mitchell Hashimoto
d307b02e40 terminal: sliding window search can move the cursor 2024-12-03 15:53:12 -08:00
Mitchell Hashimoto
6ed298c9c1 terminal: sliding window search starts working 2024-12-03 15:53:12 -08:00
Mitchell Hashimoto
2a13c6b6a3 terminal: working on a pagelist sliding window for search 2024-12-03 15:53:12 -08:00
Mitchell Hashimoto
8abbd80e06 CircBuf: add ensureUnusedCapacity, appendSlice 2024-12-03 15:53:12 -08:00
Mitchell Hashimoto
eaddb69500 datastruct: CircBuf can be initialized empty 2024-12-03 15:53:12 -08:00
Mitchell Hashimoto
61c5fb8115 terminal: single pagelist node search 2024-12-03 15:53:12 -08:00
Mitchell Hashimoto
204e4f8663 terminal: support cell_map for encodeUtf8 2024-12-03 15:53:12 -08:00
Mitchell Hashimoto
bcefbfd7b4 terminal: move UTF8 encoding to Page and wrap around it 2024-12-03 15:53:12 -08:00
Mitchell Hashimoto
50dc4b75d7 Merge pull request #2878 from ghostty-org/push-wopvxurkxzwk
terminal: PageList.reset has to zero arena memory to avoid reuse
2024-12-03 09:14:25 -05:00
Mitchell Hashimoto
e712314f31 terminal: PageList.reset has to zero arena memory to avoid reuse
Fixes #2877

As the comment in the diff states, we rely on `mmap` to zero our memory.
When we reset we are reusing previously allocated memory so we won't hit
an `mmap`. We need to zero the memory ourselves.

This is pretty slow if there is a lot of memory but in every case except
allocation failures, we expect there to be only a few pages allocated.
2024-12-03 08:58:57 -05:00
Mitchell Hashimoto
91ae0e16f4 Merge pull request #2876 from ghostty-org/push-ptmtrltnsput
Full reset (DEC RIS) preserves tracked pins, reclaims memory
2024-12-02 17:50:21 -05:00
Mitchell Hashimoto
212bd3d5fb terminal: fullReset uses the new screen reset methods 2024-12-02 17:44:07 -05:00
Mitchell Hashimoto
d7fcaefdf3 terminal: PageList.reset 2024-12-02 17:26:19 -05:00
Mitchell Hashimoto
d57d1d2395 terminal: failing tracked pin test on fullReset 2024-12-02 09:39:43 -05:00
Mitchell Hashimoto
2cb334f293 Merge pull request #2864 from s-valent/main
Fix slow scroll in tui apps
2024-12-01 12:30:12 -08:00
Mitchell Hashimoto
84e9aae918 Merge pull request #2849 from andrejdaskalov/dolphin-action
Add ghostty right-click menu item for Plasma users
2024-12-01 12:15:47 -08:00
Valentin Shinkarev
e7bfc17318 fix slow scroll in mouseReport 2024-12-01 22:58:46 +03:00
Mitchell Hashimoto
adaada3744 Merge pull request #2863 from ghostty-org/push-oonwksrnrlzn
macos: trigger fullscreenDidChange on any fullscreen event
2024-12-01 11:44:20 -08:00
Mitchell Hashimoto
f384fd038b macos: trigger fullscreenDidChange on any fullscreen event
Fixes #2840
Related to #2842

This builds on #2842 by missing a key situation: when native fullscreen
is toggled using the menu bar items it doesn't go through our
`FullscreenStyle` machinery so we don't trigger fullscreen change
events.

This commit makes it so that our FullscreenStyle always listens for
native fullscreen change (even in non-native modes) to fire a fullscreen
did change event. This way we can always rely on the event to be fired
when fullscreen changes no matter what.
2024-12-01 11:37:04 -08:00
Andrej Daskalov
3048d71537 added gtk-single-instance argument 2024-12-01 13:16:56 +01:00
Mitchell Hashimoto
3c637a2777 Merge pull request #2858 from ghostty-org/push-ryssxoyktulx
terminal: reset should preserve desired default mode values
2024-11-29 14:48:43 -08:00
Mitchell Hashimoto
853ba9e3c7 terminal: reset should preserve desired default mode values
Fixes #2857

Some terminal modes always reset, but there are others that should be
conditional based on how the terminal's default state is configured.
Primarily from #2857 is the grapheme clustering mode (mode 2027) which
was always resetting to false but should be conditional based on the
the `grapheme-width-method` configuration.
2024-11-29 14:42:01 -08:00
Mitchell Hashimoto
ffb5fff555 Merge pull request #2856 from ghostty-org/push-nmsumxnrsyrq
macos: unicode keybindings must convert to string properly
2024-11-29 14:31:19 -08:00
Mitchell Hashimoto
f98fab132b Merge pull request #2855 from mhartington/powerline-font-addition
font/sprite: add missing chevron powerline fonts
2024-11-29 14:27:36 -08:00
Mitchell Hashimoto
9ac929ef8e macos: unicode keybindings must convert to string properly
Fixes #2848

The proper way to convert a unicode scalar in Swift is to use the
`String` initializer that takes a `UnicodeScalar` as an argument. We
were converting a number to a string before, which is incorrect.
2024-11-29 14:21:46 -08:00
Mike Hartington
df4a6f2161 font/sprite: add missing chevron powerline fonts 2024-11-29 14:26:22 -05:00
Mitchell Hashimoto
cf21689a88 Merge pull request #2853 from ghostty-org/push-zzvowmuxvolu
macos: titlebar tabs can find titlebar container in fullscreen
2024-11-29 10:43:48 -08:00
Mitchell Hashimoto
3bf1fdd7de macos: titlebar tabs can find titlebar container in fullscreen
Fixes #2850

In native fullscreen, the titlebar container is no longer part of our
NSWindow and is instead a separate window called
NSToolbarFullScreenWindow. We now search for this window when we are in
native fullscreen.
2024-11-29 10:35:02 -08:00
Andrej Daskalov
46afa9c4e1 use cli argument instead of cd 2024-11-29 11:51:10 +01:00
Andrej Daskalov
46adc2fb43 Revert "update readme"
This reverts commit adfbf9d7f45f559bec08b261fef8ebaf40d7fd72.
2024-11-29 11:14:36 +01:00
Andrej Daskalov
074312c5ef updated permissions and build process
Removed check for plasma in build.zig, it installs it anyways now
Added executable permissions for ghostty_dolphin.desktop since Plasma
requires them for context menu items
2024-11-29 11:14:17 +01:00
Andrej Daskalov
4be06d1c11 rename file to match package 2024-11-29 00:27:51 +01:00
Andrej Daskalov
d6beec2f99 Merge branch 'ghostty-org:main' into dolphin-action 2024-11-29 00:26:42 +01:00
Andrej Daskalov
adfbf9d7f4 update readme 2024-11-28 23:41:55 +01:00
Andrej Daskalov
62fe3eb652 added right click action for plasma 2024-11-28 23:41:55 +01:00
Mitchell Hashimoto
423f58c24c Merge pull request #2843 from ghostty-org/push-lqkuvlyttoul
config: need to dupe filepath for diagnostics
2024-11-27 08:51:51 -08:00
Mitchell Hashimoto
f55b70912d Merge pull request #2842 from ghostty-org/push-tusxnlsuxrlm
macos: disable background opacity/blur in native fullscreen
2024-11-27 08:47:53 -08:00