4950 Commits

Author SHA1 Message Date
Mitchell Hashimoto
a000eef89e Merge pull request #1459 from mitchellh/update-zig
Update zig
2024-02-04 16:17:13 -08:00
Mitchell Hashimoto
7001ef2739 Merge pull request #1458 from qwerasd205/macos-fix-title-label
(macOS) Fixed/improved titlebar tabs custom title label handling
2024-02-04 15:41:38 -08:00
Mitchell Hashimoto
bd38689539 macos: make label fileprivate 2024-02-04 15:41:15 -08:00
Mitchell Hashimoto
79f7c44e82 ci: re-enable windows builds 2024-02-04 15:37:42 -08:00
Qwerasd
a121549f32 macOS: Improve custom title label centering and overflow appearance. 2024-02-04 17:56:08 -05:00
Qwerasd
fdab397c61 macOS: Simplify native title hiding logic for titlebar tabs. 2024-02-04 16:55:18 -05:00
Qwerasd
4d335a220f fix(macOS): Adjust custom toolbar title to fix clipping problems. 2024-02-04 16:55:07 -05:00
Mitchell Hashimoto
10dfa00402 update zig 2024-02-04 13:42:52 -08:00
Mitchell Hashimoto
da61f0797e Merge pull request #1457 from qwerasd205/macos-fix-fullscreen-separator
fix(macOS): Hide titlebar separator line in native fullscreen.
2024-02-04 13:39:16 -08:00
Qwerasd
7f217fc326 fix(macOS): Hide titlebar separator line in native fullscreen. 2024-02-04 14:22:44 -05:00
Mitchell Hashimoto
e56394cbb6 Merge pull request #1451 from qwerasd205/macos-fix-titlebar-tabs
fix(macOS): Restore titlebar tabs when exiting non-native fullscreen
2024-02-03 20:26:04 -08:00
Qwerasd
181d64338d fix(macOS): Restore titlebar tabs when exiting non-native fullscreen 2024-02-03 20:03:34 -05:00
Mitchell Hashimoto
e3e86c4b23 Merge pull request #1449 from der-teufel-programming/fix-windows
Surface: fix reportColorScheme on Windows
2024-02-03 06:16:33 -08:00
Krzysztof Wolicki
3959364a86 Surface: fix reportColorScheme on Windows 2024-02-03 13:08:05 +01:00
Mitchell Hashimoto
a1dd6e0394 Merge pull request #1446 from jcollie/gtk-mode-2031
Implement mode 2031 and DSR 996 for GTK
2024-02-02 20:02:47 -08:00
Mitchell Hashimoto
d315223423 apprt/gtk: small stylistic edits 2024-02-02 20:00:10 -08:00
Jeffrey C. Ollie
0938835f87 Implement mode 2031 and DSR 996 for GTK 2024-02-02 21:10:58 -06:00
Mitchell Hashimoto
f939cee0f1 Merge pull request #1444 from mitchellh/theme
Mode 2031, DSR 996: Color Scheme (Dark/Light) Query + Notification
2024-02-02 13:55:49 -08:00
Mitchell Hashimoto
986fa34d3e terminal: remove unused const 2024-02-02 13:28:19 -08:00
Mitchell Hashimoto
7aeb7c1a58 terminal: rename theme to color_scheme for dsr 2024-02-02 13:20:59 -08:00
Mitchell Hashimoto
62785d9e54 macos: report color scheme for surface to libghostty 2024-02-02 13:19:46 -08:00
Mitchell Hashimoto
6fe8376073 terminal: support mode 2031 2024-02-02 13:08:10 -08:00
Mitchell Hashimoto
258d51395c apprt/embedded: add API for reporting color scheme 2024-02-02 13:02:16 -08:00
Mitchell Hashimoto
ae8f5f3ceb core: colorSchemeCallback on surface, can report 2024-02-02 12:51:20 -08:00
Mitchell Hashimoto
3c26828a3f terminal: distinguish between DSRs with "?" and not 2024-02-02 12:42:22 -08:00
Mitchell Hashimoto
b43622093c Merge pull request #1443 from mitchellh/mode-2027
config: grapheme-width-method sets mode 2027
2024-02-02 12:22:42 -08:00
Mitchell Hashimoto
eb653907d6 config: grapheme-width-method sets mode 2027
Fixes #1403

This changes the behavior of `grapheme-width-method = unicode` to change
the default state of mode 2027 to true. Prior to this, setting this
config would force grapheme clustering regardless of mode 2027. Now,
this only sets the default and running TUI programs can disable it if
they want.
2024-02-02 12:13:13 -08:00
Mitchell Hashimoto
cabd2d572d Merge pull request #1440 from qwerasd205/macos-fix-resize-jello
fix(macOS): Prevent squash/stretch during resize
2024-02-02 08:42:07 -08:00
Mitchell Hashimoto
7b3deb13d8 renderer/metal: apply layerContentsPlacement on macOS to fix stretching
Fixes #42
2024-02-02 08:39:08 -08:00
Qwerasd
a4ca2963a2 fix(macOS): Prevent squash/stretch during resize 2024-02-02 03:00:43 -05:00
Mitchell Hashimoto
4ac9610b41 Merge pull request #1439 from qwerasd205/macos-fix-lightmode-backdrop
fix(macOS): Use better hardcoded colors for light titlebar tabs window button backdrop
2024-02-01 23:05:55 -08:00
Qwerasd
f590aebdfa fix(macOS): Use better hardcoded colors for light titlebar tabs window button backdrop 2024-02-02 02:00:02 -05:00
Mitchell Hashimoto
c92e0ccf4d Merge pull request #1438 from mitchellh/macos-backdrop
macos: set titlebar tab window button backdrop color based on appearance
2024-02-01 21:43:03 -08:00
Mitchell Hashimoto
98ad832d86 macos: set window button backdrop color based on appearance 2024-02-01 21:41:29 -08:00
Mitchell Hashimoto
def93f837f Merge pull request #1437 from mitchellh/theme-auto
config: add window-theme = auto for automatic choosing based on bg color
2024-02-01 21:11:07 -08:00
Mitchell Hashimoto
e5400bad06 config: add window-theme = auto for automatic choosing based on bg color 2024-02-01 20:49:28 -08:00
Mitchell Hashimoto
f0ed3d7ebe Merge pull request #1436 from erf/url-regex
url: add missing rarer (all) characters allowed in URL
2024-02-01 20:28:45 -08:00
Erlend Lind Madsen
c418ae577c url: add missing rarer (all) characters allowed in URL 2024-02-02 04:59:13 +01:00
Mitchell Hashimoto
bcab97b1ce Merge pull request #1435 from erf/url-regex
url: add missing url-scheme tests
2024-02-01 18:42:31 -08:00
Erlend Lind Madsen
823aedbb88 url: add missing url-scheme tests 2024-02-02 03:17:24 +01:00
Mitchell Hashimoto
f1fe3d9c88 Merge pull request #1434 from erf/url-regex
url: support dash '-' in urls
2024-02-01 18:17:07 -08:00
Erlend Lind Madsen
a3e2d9d250 url: sort url schemes by most-used 2024-02-02 02:59:55 +01:00
Erlend Lind Madsen
ab8d5e261a url: support dash '-' in urls 2024-02-02 02:45:48 +01:00
Mitchell Hashimoto
66971d8e28 Merge pull request #1433 from mitchellh/macos-titlebar-light
macos: titlebar tabs set window appearance based on bg luminance
2024-02-01 16:54:52 -08:00
Mitchell Hashimoto
6482c25579 macos: titlebar tabs set window appearance based on bg luminance
Fixes #1427
2024-02-01 16:47:45 -08:00
Mitchell Hashimoto
cb33fda01b Merge pull request #1432 from erf/url-regex
url/Link: simplify regex, remove 'find_longest' param and add tests
2024-02-01 16:31:54 -08:00
Erlend Lind Madsen
4475f5b9c5 url/Link: simplify regex, remove 'find_longest' param and add new tests 2024-02-02 01:23:39 +01:00
Mitchell Hashimoto
07ebd2e6c0 renderer: only highlight link directly under mouse on line
Related to #1398
2024-02-01 14:01:42 -08:00
Mitchell Hashimoto
88e7c96eac Merge pull request #1431 from mitchellh/mouse-mods-alt
core: handle mouse capture events with link highlighting
2024-02-01 09:20:04 -08:00
Mitchell Hashimoto
6de4533afb core: handle mouse capture events with link highlighting
Fixes #1416

At a high level, the issue is that when mouse capture is enabled (i.e. in
neovim), "shift" escapes the capture. So "cmd+shift" is equal to "cmd"
which doesn't get sent to the TUI program and so on. For link
highlighting which now requires "cmd" (super) is held, we were sending
"cmd+shift" to the renderer so we weren't checking for links.

So the core of this commit is respecting this scenario and stripping the
shift modifier.

This commit also found that when the mouse wasn't over a link, we were
always checking and highlighting links on line one of the visible
screen. This bug is fixed and should also result in a very slight
performance improvement on rendering in all cases.
2024-02-01 09:19:39 -08:00