Mitchell Hashimoto
7b84840951
Merge pull request #2043 from hauleth/chore/clean-up-typos
...
chore: clean up typos
2024-08-05 10:20:15 -07:00
Nihaal Sangha
538f6033ea
Document not every font-family needs to be set
2024-08-05 17:26:33 +01:00
Nihaal Sangha
fae848da00
Use standard GitHub Actions committer info
2024-08-05 16:40:47 +01:00
Łukasz Niemier
f9be02a20f
chore: clean up typos
2024-08-05 13:56:57 +02:00
Mitchell Hashimoto
1b386faee9
Merge pull request #2041 from jcollie/quit-delay-fix
...
Fix quit-after-last-window-closed=true, quit-after-last-window-closed-delay=null
2024-08-04 19:12:03 -07:00
Mitchell Hashimoto
656c720866
apprt/gtk: can manually expire our quit timer instead of 0 second timer
2024-08-04 19:06:17 -07:00
Jeffrey C. Ollie
4657f30f7f
Fix quit-after-last-window-closed=true, quit-after-last-window-closed-delay=null
...
The case when `quit-after-last-window-closed=true` and
`quit-after-last-window-closed-delay=null` was broken because control
gets stuck inside `g_main_context_iteration` and never returns to our
code. In that case add a 0ms timer that will return control flow from
GLib back to our code so that we can quit.
Fixes #2039
2024-08-04 14:47:58 -05:00
Mitchell Hashimoto
5f0371c189
change window padding color to background by default
...
While we work out the bugs…
2024-08-03 22:27:19 -07:00
Mitchell Hashimoto
f09a45704a
config: typo in window-padding-color docs
2024-08-03 22:04:35 -07:00
Mitchell Hashimoto
edc399813b
Merge pull request #2037 from ghostty-org/extend
...
renderer: disable window-padding-color=extend in certain scenarios
2024-08-03 22:01:36 -07:00
Mitchell Hashimoto
ea551990eb
renderer: disable window-padding-color=extend in certain scenarios
...
There are scenarios where this configuration looks bad. This commit
introduces some heuristics to prevent it. Here are the heuristics:
* Extension is always enabled on alt screen.
* Extension is disabled if a row contains any default bg color. The
thinking is that in this scenario, using the default bg color looks
just fine.
* Extension is disabled if a row is marked as a prompt (using semantic
prompt sequences). The thinking here is that prompts often contain
perfect fit glyphs such as Powerline glyphs and those look bad when
extended.
This introduces some CPU cost to the extension feature but it should be
minimal and respects dirty tracking. This is unfortunate but the feature
makes many terminal scenarios look much better and the performance cost
is minimal so I believe it is worth it.
Further heuristics are likely warranted but this should be a good
starting set.
2024-08-03 21:56:19 -07:00
Mitchell Hashimoto
2d418171df
Merge pull request #2036 from ghostty-org/padding-extend
...
`window-padding-color = extend` to extend nearest cell bg color to padding
2024-08-03 18:39:02 -07:00
Mitchell Hashimoto
1cc5a69c43
Revert "renderer/metal: can access grid metrics directly on font grid"
...
This reverts commit 172179bbff7d3f0df73ba1c29c6906b69ead2619.
2024-08-03 18:37:42 -07:00
Mitchell Hashimoto
172179bbff
renderer/metal: can access grid metrics directly on font grid
...
Its never recalculated so we don't need a lock.
2024-08-03 18:37:15 -07:00
Mitchell Hashimoto
56b3aa0b5e
renderer/metal: font grid change should run all screen size logic
2024-08-03 18:33:53 -07:00
Mitchell Hashimoto
ed1c163c7b
renderer/opengl: support window-padding-color=extend
2024-08-03 16:29:17 -07:00
Mitchell Hashimoto
55e8c421b5
config: add window-padding-color
2024-08-03 16:14:14 -07:00
Mitchell Hashimoto
9214db3c5f
renderer/metal: handle top/left
2024-08-03 16:03:42 -07:00
Mitchell Hashimoto
5309f4d080
renderer/metal: extend background color of grid border into padding
2024-08-03 15:39:02 -07:00
Mitchell Hashimoto
c554b607b7
terminal: eraseDisplay should allow kitty erase through
...
Fixes #1994
2024-08-03 14:05:28 -07:00
Jeffrey C. Ollie
0f27fc2a0d
Implement asymmetric window padding.
...
Add `window-padding-top`, `window-padding-bottom`,
`window-padding-left`, and `window-padding-right` options. The
`window-padding-x` and `window-padding-y` options will override the
individual options.
2024-08-03 14:42:28 -05:00
Mitchell Hashimoto
288a1fe549
Merge pull request #2021 from jcollie/background
...
gtk: allow running in the background
2024-08-03 10:08:45 -07:00
Mitchell Hashimoto
224f2d0491
apprt/gtk: use tagged union for quit timer
2024-08-03 10:05:31 -07:00
Mitchell Hashimoto
c5e2889369
config: clarify comment
2024-08-03 09:50:39 -07:00
Mitchell Hashimoto
e62bdbf8b7
config: duration prevents overflow, added tests
2024-08-03 09:48:40 -07:00
Jeffrey C. Ollie
b87667c950
document behavior when no initial window is created and a quit delay is set
2024-08-02 16:17:10 -05:00
Jeffrey C. Ollie
0e533af21a
add a warning if quit delay too short
2024-08-02 15:43:40 -05:00
Jeffrey C. Ollie
d243ad6616
add a standard zig formatter to Duration and more testing
2024-08-02 15:43:37 -05:00
Jeffrey C. Ollie
cf515c80d0
fix off-by-one error
2024-08-02 15:43:31 -05:00
Jeffrey C. Ollie
3aa1989620
make Duration units a struct field to reduce duplication and enable table-driven unit tests
2024-08-02 10:47:47 -05:00
Jeffrey C. Ollie
3a4b236e6d
re-use code to cancel old timer
2024-08-02 10:24:17 -05:00
Mitchell Hashimoto
2f373bb443
Merge pull request #2030 from jcollie/list-actions
...
Add +list-actions CLI action to list keybind actions.
2024-08-01 20:12:43 -07:00
Mitchell Hashimoto
c5d03bbbd6
comment
2024-08-01 20:12:22 -07:00
Mitchell Hashimoto
5a4eb43582
Merge pull request #2031 from jcollie/cgroup-typo
...
fix typo
2024-08-01 20:10:09 -07:00
Jeffrey C. Ollie
38e9847bd2
fix typo
2024-08-01 19:48:00 -05:00
Jeffrey C. Ollie
c5e9913def
Add +list-actions CLI action to list keybind actions.
2024-08-01 18:57:37 -05:00
Mitchell Hashimoto
f5f7eccfb1
Merge pull request #2029 from ghostty-org/macos-reset
...
macos: add "Reset Terminal" context menu option
2024-08-01 15:08:32 -07:00
Mitchell Hashimoto
9785130c03
macos: add "Reset Terminal" context menu option
2024-08-01 14:58:03 -07:00
Mitchell Hashimoto
9528978488
Merge pull request #2014 from jcollie/gtk-context-menu-additions
...
Additions to GTK context menu
2024-08-01 14:54:49 -07:00
Mitchell Hashimoto
99b1b6305f
reset only
2024-08-01 14:54:39 -07:00
Jeffrey C. Ollie
ec0f90d1b6
Improve quit timers.
...
Instead of "polling" to see if a quit timer has expired, start a single
timer that expires after the confiugred delay when no more surfaces are
open. That timer can be cancelled if necessary.
2024-08-01 14:49:02 -05:00
Mitchell Hashimoto
a5ddf57d4c
nix: update hash
2024-08-01 10:30:57 -07:00
Mitchell Hashimoto
ffbd91be9a
update libxev to fix mach port leakage
...
Fixes #2005
2024-08-01 10:28:26 -07:00
Mitchell Hashimoto
c8e94a5553
nix: update hash
2024-08-01 10:15:14 -07:00
Mitchell Hashimoto
ee7200d5ff
update libxev
2024-08-01 10:13:18 -07:00
Mitchell Hashimoto
089b0e6881
Merge pull request #2028 from ghostty-org/leak
...
core: surface needs to free link regex on config reload
2024-08-01 10:00:25 -07:00
Mitchell Hashimoto
918a32dcf7
core: surface needs to free link regex on config reload
2024-08-01 09:41:48 -07:00
Jeffrey C. Ollie
3d6ca14dc6
make quit-after-last-window-closed-delay an optional
2024-08-01 10:51:08 -05:00
Mitchell Hashimoto
6be53cc63a
Merge pull request #2026 from ghostty-org/gtk-follow
...
apprt/gtk: ignore mouse movement if no actual movement occurs
2024-08-01 06:29:12 -07:00
Mitchell Hashimoto
e25997ad58
apprt/gtk: ignore mouse movement if no actual movement occurs
...
Fixes #2022
See comment
2024-08-01 06:25:10 -07:00