4916 Commits

Author SHA1 Message Date
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
Mitchell Hashimoto
dcb3c6e78e Merge pull request #1430 from jcollie/csi-n-typo
fix typo in CSI n handling
2024-02-01 09:15:59 -08:00
Mitchell Hashimoto
341b2fadb7 Merge pull request #1429 from mitchellh/reset
core: add "reset" keybinding to reset the terminal
2024-02-01 09:15:50 -08:00
Jeffrey C. Ollie
67e347070d fix typo in CSI n handling 2024-02-01 10:50:49 -06:00
Mitchell Hashimoto
eafc9559d7 core: add "reset" keybinding to reset the terminal
Fixes #1425
2024-02-01 08:46:39 -08:00
Mitchell Hashimoto
61b964b958 font/freetype: enable bitmap loading for colored faces 2024-02-01 08:40:18 -08:00
Mitchell Hashimoto
52c43af0cc Merge pull request #1428 from mitchellh/freetype-bitmap
font/freetype: disallow bitmap strikes in scalable fonts
2024-02-01 08:30:03 -08:00
Mitchell Hashimoto
e4515d44c5 font/freetype: disallow bitmap strikes in scalable fonts
Fixes #1421
2024-02-01 08:28:33 -08:00
Mitchell Hashimoto
1647115b1f Merge pull request #1424 from qwerasd205/fix-titlebar-tab-restore
fix(macOS): restoring tabbed windows with titlebar tabs enabled
2024-01-31 19:11:08 -08:00
Mitchell Hashimoto
cdae0ac2bd Merge pull request #1423 from allancalix/install-cli
Automatically inject ghostty cli to end of $PATH
2024-01-31 18:58:39 -08:00
Mitchell Hashimoto
c2e0cff1d2 termio/exec: only add ghostty path if it isn't already in path 2024-01-31 18:57:42 -08:00
Mitchell Hashimoto
577b12430c termio/exec: always put ghostty bin dir in GHOSTTY_BIN_DIR env var 2024-01-31 18:50:50 -08:00
Qwerasd
2944128e05 fix(macOS): restoring tabbed windows with titlebar tabs enabled 2024-01-31 20:07:35 -05:00
Allan Calix
e11d5940ba Automatically inject ghostty cli to end of $PATH 2024-01-31 16:24:15 -08:00
Mitchell Hashimoto
ecb77219cc Merge pull request #1418 from qwerasd205/macos-titlebar-tabs
macOS: Added titlebar tabs
2024-01-31 15:45:05 -08:00
Mitchell Hashimoto
50125c0319 macos: whitespace 2024-01-31 15:44:34 -08:00
Mitchell Hashimoto
4a93181b79 macos: minor edits 2024-01-31 15:43:35 -08:00
Qwerasd
308f8cce36 macOS: center window title when titlebar tabs enabled
Uses a custom toolbar that populates itself with a centered text field and provides a method to set the text.
2024-01-31 16:16:41 -05:00
Mitchell Hashimoto
1a3d2d151e macos: fix tabs vs spaces 2024-01-31 12:06:58 -08:00
Mitchell Hashimoto
939bb22615 macos: do not hardcode true for titlebar tabs 2024-01-31 10:22:09 -08:00
Mitchell Hashimoto
00661c13ab config: clarify some limitations 2024-01-31 10:20:37 -08:00
Mitchell Hashimoto
fbac2d9810 macos: titlebar tab logic shuffling 2024-01-31 10:08:05 -08:00
Qwerasd
dacbdf3f38 fix(macOS): set titlebar background color to support transparent windows with titlebar tabs 2024-01-31 07:58:31 -05:00
Qwerasd
ba16d65d02 macOS: Added titlebar tabs 2024-01-30 18:48:36 -05:00
Mitchell Hashimoto
b8422717d3 Merge pull request #1417 from peteschaffner/move-color-extensions-into-crosskit
Move color extensions into OSColor
2024-01-30 14:05:00 -08:00
Pete Schaffner
63cc7dbe0d Move color extensions into OSColor
We are also now using the `darken(by:)` implementation to generate
the split divider color on macOS, which means we'll have a consistent
rendering across iOS and macOS.
2024-01-30 22:36:52 +01:00
Mitchell Hashimoto
0c298e0f9a Merge pull request #1415 from peteschaffner/split-divider-color-ios
Add ability to color the split divider on iOS
2024-01-30 09:35:47 -08:00
Pete Schaffner
c248441057 Add ability to color the split divider on iOS
This adds the needed UIColor extensions to achieve the equivalent of
what we did on macOS
2024-01-30 14:31:25 +01:00
Mitchell Hashimoto
411a757cdf macos: fix uikit build, NSColor is not available 2024-01-29 22:23:06 -08:00
Mitchell Hashimoto
508c744a9d Merge pull request #1411 from peteschaffner/themed-split-view-divider
Tint split view divider based on theme background
2024-01-29 21:33:51 -08:00
Mitchell Hashimoto
d625e9d7c4 macos: remove headers
Nothing personal, I remove them from all files.
2024-01-29 21:33:08 -08:00
Mitchell Hashimoto
18dfb642f5 macos: plumb through the split divider color 2024-01-29 21:32:10 -08:00
Pete Schaffner
375df57155 Tint split view divider based on theme background 2024-01-29 21:58:13 +01:00
Mitchell Hashimoto
80a91a6581 Merge pull request #1410 from mitchellh/macos-scale
apprt/embedded: do not allow NaN or small content scales
2024-01-29 08:40:45 -08:00
Mitchell Hashimoto
5c0e63458f apprt/embedded: do not allow NaN or small content scales
Fixes #1408
2024-01-29 08:35:23 -08:00