Mitchell Hashimoto
22b9f24978
macos: clarify comments, clean up notifications for fullscreen
2024-09-30 20:10:23 -07:00
Mitchell Hashimoto
045ecacd8c
macos: fullscreen mode can be changed at runtime
2024-09-30 10:31:11 -07:00
Paul Berg
aa10e5160b
cli: handle mouse scroll before setting window
2024-09-30 11:02:32 +02:00
Mitchell Hashimoto
99a1dbdf46
Merge pull request #2322 from Syphdias/fix_2271
...
Split GDK environment variables
2024-09-29 09:48:56 -07:00
Mitchell Hashimoto
bbacee66d0
font/sprite: fix out of bounds right on curly underline
...
Fixes #2321
2024-09-29 09:39:32 -07:00
Mitchell Hashimoto
f67a647a12
font/sprite: bounds checking for pixel writes on Pixman
2024-09-29 09:38:38 -07:00
Christian Kugler
f9d3f64978
Merge branch 'main' into fix_2271
2024-09-29 14:15:56 +02:00
Christian Kugler
f309d4191e
Use helper function to set correct env variables
...
GTK4 version 4.16 split the environment variable `GDK_DEBUG` into `GDK_DEBUG`
and `GDK_DISABLE`. This is being done by using the helper function `atLeast` to
handle certain versions accordingly.
`GSK_RENDERER` also only needs to be set in later GTK versions (>=1.14.0).
2024-09-29 14:04:13 +02:00
Mitchell Hashimoto
4796583a51
Merge pull request #2320 from ghostty-org/slideterm
...
macOS: Quick Terminal ("Quake-style" terminal)
2024-09-28 21:20:00 -07:00
Mitchell Hashimoto
4f9d49b380
macos: handle multiple monitors properly
2024-09-28 20:52:22 -07:00
Mitchell Hashimoto
1f3c3dde10
input: note fullscreen isn't supported by quick terminal
2024-09-28 18:51:47 -07:00
Mitchell Hashimoto
11d5ec7dc1
config: support quick terminal position
2024-09-28 18:42:25 -07:00
Mitchell Hashimoto
1570ef01a7
rename slide to quick terminal
2024-09-28 15:20:35 -07:00
Mitchell Hashimoto
86e98c8403
Merge pull request #2313 from rockorager/sgr-21
...
sgr: add support for legacy double underline
2024-09-28 10:34:54 -07:00
Jeffrey C. Ollie
9f543ceac2
cli: fix integer overflow in +list-themes
if window is too narrow
...
Reproduction is to resize the window to it's minimum width and then
run `ghostty +list-themes`. Ghostty will crash because Zig for loops
don't like having a range where the end is smaller than the start.
2024-09-28 12:12:00 -05:00
Tim Culverhouse
93643d1741
sgr: add support for legacy double underline
...
SGR 21 is defined to be a double underline. This behavior is common
among many terminals, notably xterm.
References: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Functions-using-CSI-_-ordered-by-the-final-character_s_
2024-09-27 22:22:22 -05:00
Mitchell Hashimoto
7806366eec
core: fix up toggle_slide_terminal action for rebase
2024-09-27 18:36:06 -07:00
Mitchell Hashimoto
cadb960ef9
core: slide terminal keybinding action
2024-09-27 18:36:06 -07:00
Mitchell Hashimoto
576453cfde
apprt/gtk: set null url if url is empty
...
Fixes #2306
2024-09-27 18:34:08 -07:00
Mitchell Hashimoto
6d68db3bdc
core: only extend selection on mouse if click interval is exceeded
...
Previously, once we had one click registered, shift+click would always
go into selection extend mode. This is not the behavior we want, since
we want shift+double/triple click to work in alternate screens.
This commit changes the behavior so that we only extend the selection
after the multi-click interval has passed.
I see a lot of opportunity to improve this whole callback much more but
I don't want to risk introducing new bugs since this is a hard to test
area, so I'm going to leave it for now.
2024-09-27 14:21:27 -07:00
Mitchell Hashimoto
f6f91b5eb5
core: fix invalid action call that wasn't setting our metrics properly
...
Fixes #2308
2024-09-27 12:28:15 -07:00
Mitchell Hashimoto
7befb5a418
macos: fix previous/next tab bindings, improve action logging
2024-09-27 12:24:11 -07:00
Jeffrey C. Ollie
a969364f93
cli/list-themes: add ability to search theme names
2024-09-27 10:53:58 -07:00
Jeffrey C. Ollie
e313352c1f
cli: update +list-themes --help text
2024-09-27 10:53:58 -07:00
Jeffrey C. Ollie
a6a4f9ff8e
cli: list-themes should list symlinks
...
Symbolic links should be listed in addition to normal files. Useful
for system like home-manager that link config files to location in the
Nix store.
2024-09-27 10:53:58 -07:00
Jeffrey C. Ollie
743e547235
cli: "fancy" theme preview
...
This adds a "fancy" theme preview to the `+list-themes` CLI action.
By default, if the command is connected to a TTY, it will display the
fancy preview. If it is not connected to a TTY, or the user specifies
`--plain` on the command line, a simple list of themes will be printed
to stdout.
While in the preview `F1` or `?` will show a help screen.
2024-09-27 10:53:58 -07:00
Mitchell Hashimoto
08ee32b633
Forward std_options from entrypoint in main.zig
2024-09-27 10:51:19 -07:00
Mitchell Hashimoto
be0d71f62d
apprt/embedded: add the tab overview to the enum
2024-09-27 10:15:16 -07:00
Paul Berg
f1474c220d
bind: add toggle_tab_overview binding
2024-09-27 10:13:05 -07:00
Paul Berg
7b8b58110c
apprt/gtk: store tab_overview in Window struct
2024-09-27 10:12:08 -07:00
Paul Berg
6ef87d298c
apprt/gtk: remove Window.hasAdwToolbar
...
this is the same as isAdwWindow
2024-09-27 10:12:08 -07:00
Paul Berg
fe4f4fdc72
apprt/gtk: fix build with -Dgtk-libadwaita=false
2024-09-27 10:12:08 -07:00
Mitchell Hashimoto
4ae20212bf
libghostty: unified action dispatch
...
First, this commit modifies libghostty to use a single unified action
dispatch system based on a tagged union versus the one-off callback
system that was previously in place. This change simplifies the code on
both the core and consumer sides of the library. Importantly, as we
introduce new actions, we can now maintain ABI compatibility so long as
our union size does not change (something I don't promise yet).
Second, this moves a lot more of the functions call on a surface into
the action system. This affects all apprts and continues the previous
work of introducing a more unified API for optional surface features.
2024-09-26 22:00:11 -07:00
Mitchell Hashimoto
84e0a05027
Merge pull request #2295 from qwerasd205/underlines
...
Various underline (and strikethrough) improvements
2024-09-26 14:54:43 -07:00
Mitchell Hashimoto
3b419a2ba2
apprt/gtk: handle zero value notification pointers
2024-09-26 14:40:33 -07:00
Mitchell Hashimoto
4cc4eb5ed0
core: remove more hasdecls
2024-09-26 14:21:06 -07:00
Mitchell Hashimoto
4e2781fdec
apprt/gtk
2024-09-26 14:13:18 -07:00
Mitchell Hashimoto
e29918ebb8
core: more actions
2024-09-26 10:20:44 -07:00
Mitchell Hashimoto
9202cba1f5
core: many more actions
2024-09-26 10:05:10 -07:00
Mitchell Hashimoto
1e010b8e08
core: more actions
2024-09-26 09:37:31 -07:00
Mitchell Hashimoto
26cba70b69
core: no need for hasTabs apprt function
2024-09-26 08:34:20 -07:00
Mitchell Hashimoto
02d7e766e1
core: move password input into action enum
2024-09-25 11:43:48 -07:00
Mitchell Hashimoto
ae98dddead
apprt/embedded: support new performAction API
2024-09-25 11:31:14 -07:00
Mitchell Hashimoto
0e043bc0e4
apprt: transition all hasDecls in App.zig to use the new action dispatch
2024-09-25 11:28:10 -07:00
Qwerasd
a0f017d6fd
freetype: update expected ul pos in tests to account for removed fudge factor
2024-09-25 12:11:04 -06:00
Mitchell Hashimoto
13603c51a9
apprt: begin transition to making actions an enum and not use hasDecl
2024-09-25 11:02:45 -07:00
Qwerasd
003b100707
font: remove fudge factors in ul and st position calculations
...
These were present because of an incorrect calculation in the underline
sprite renderer, and are no longer necessary.
2024-09-25 12:01:24 -06:00
Qwerasd
9a87001fa6
font/sprite: correct underline placement calculation
2024-09-25 11:56:01 -06:00
Qwerasd
74d24a53ab
correct diagram/description (+Y is down not up)
2024-09-25 11:41:12 -06:00
Mitchell Hashimoto
fade882574
Merge pull request #2300 from vancluever/terminal-kitty-large-signed-ints
...
terminal/kitty: increase value buffer, make 'H' and 'V' i32
2024-09-25 09:41:40 -07:00