Mitchell Hashimoto
fd9280429e
renderer: re-enable URL underlining
2024-03-22 20:28:05 -07:00
Mitchell Hashimoto
7419794a7b
renderer: convert link to new state
2024-03-22 20:28:05 -07:00
Mitchell Hashimoto
d1faa37b65
renderer/opengl: convert
2024-03-22 20:28:01 -07:00
Mitchell Hashimoto
a697e97e08
renderer/metal: fix kitty image offset on screen
2024-03-22 20:28:01 -07:00
Mitchell Hashimoto
0a3f431d1b
renderer/metal: almost bring back kitty images, some bugs
2024-03-22 20:28:00 -07:00
Mitchell Hashimoto
9eeaa0d0a9
renderer/metal: re-enable selection awareness for shaping
2024-03-22 20:28:00 -07:00
Mitchell Hashimoto
49e8acbcd2
core: configurable scrollback limit
2024-03-22 20:27:59 -07:00
Mitchell Hashimoto
75255780e9
renderer/metal: show selections
2024-03-22 20:27:55 -07:00
Mitchell Hashimoto
21f09a9159
remove point.Viewport
2024-03-22 20:27:52 -07:00
Mitchell Hashimoto
ff0e07a907
renderer/metal: re-enable the cursor, it works
2024-03-22 20:27:52 -07:00
Mitchell Hashimoto
c61de49082
renderer/metal: port
2024-03-22 20:27:44 -07:00
Mitchell Hashimoto
25d84d697a
termio/exec: get compiler errors gone
2024-03-22 20:27:44 -07:00
Mitchell Hashimoto
9b4ab0e209
zig build test with renamed terminal package
2024-03-22 20:27:44 -07:00
Mitchell Hashimoto
b48d24a546
update zig
2024-03-13 09:14:12 -07:00
Qwerasd
e8460fa2c2
fix(renderer): allocate enough room for fg cells
...
Previously encountered OOB when screen filled with cells with glyphs,
underlines, and strikethroughs. Also clarified comment slightly.
2024-03-03 20:26:51 -05:00
Mitchell Hashimoto
239a517710
Revert "renderer/metal: start extracting "visible" resources"
...
This reverts commit 0c1d288142a0d0bf31be13999e89bdc08bd18fb9.
2024-02-13 21:57:55 -08:00
Mitchell Hashimoto
387e5b242e
Revert "renderer/metal: cache buf cells"
...
This reverts commit 9f6db11b95f1bfed79f9b653f2ffb2be81cfc158.
2024-02-13 21:57:50 -08:00
Mitchell Hashimoto
b602eba61b
Revert "renderer/metal: move shaders to cached state"
...
This reverts commit bef83446d1cff42946c2a242e3c645350d00c574.
2024-02-13 21:57:49 -08:00
Mitchell Hashimoto
e10e45a935
Revert "renderer/metal: free resources when occluded"
...
This reverts commit b5d543705de4ea42407db9e2d49ae03f3ae5cf14.
2024-02-13 21:57:46 -08:00
Mitchell Hashimoto
b5d543705d
renderer/metal: free resources when occluded
2024-02-13 20:07:41 -08:00
Mitchell Hashimoto
bef83446d1
renderer/metal: move shaders to cached state
2024-02-13 19:37:10 -08:00
Mitchell Hashimoto
9f6db11b95
renderer/metal: cache buf cells
2024-02-13 19:10:58 -08:00
Mitchell Hashimoto
0c1d288142
renderer/metal: start extracting "visible" resources
2024-02-13 09:44:40 -08:00
Mitchell Hashimoto
e1908f7cc7
renderer: handle renderer pause/redraw on occlusion
2024-02-13 09:21:04 -08:00
Jeffrey C. Ollie
18005ffa35
Fix shader time uniforms ( #1462 )
...
* fix shader time uniforms
* renderer/metal: one typo
---------
Co-authored-by: Mitchell Hashimoto <mitchell.hashimoto@gmail.com>
2024-02-04 20:50: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
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
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
43c105c363
renderer: constrain emoji to cell width
...
Fixes #1402
2024-01-28 09:07:49 -08:00
Leaf Garland
d1d7665510
Default to background color for cursor-text
...
Previously the default was black which doesn't work so well if the
cursor block is dark.
2024-01-28 20:20:40 +13:00
Mitchell Hashimoto
75ca29da59
renderer/link: fix test
2024-01-27 19:34:05 -08:00
Mitchell Hashimoto
3efe88c85c
input: add link highlight always/hover w/ mods
2024-01-27 19:07:49 -08:00
Mitchell Hashimoto
ae11cc9042
add a new highlight state that requires modifiers
2024-01-27 19:03:03 -08:00
Mitchell Hashimoto
1907c58972
renderer: consider powerline box glyphs whitespace for PUA scaling
...
This adds to the heuristics introduced for #1071 . Please read that issue
and associated PRs in their entirety to understand this commit.
This extends our concept of "whitespace" to include powerline box
glyphs. We don't want to constrain nerd symbols next to powerline box
glyphs because box glyphs are often used to style and contain nerd
glyphs. For example, its common to see a right-facing semi-circle, then
a nerd font glyph, then a left-facing semi-circle to create a
pill-shaped label.
This allows those nerd font symbols to be rendered full size. Test
script below (copy the bytes):
printf "\n"
printf " \n"
printf "\n"
2024-01-25 15:35:48 -08:00
Mitchell Hashimoto
aa147413c7
renderer/metal: only set shared texture mode on aarch64
...
This setting is only supported on aarch64.
2024-01-23 14:09:48 -08:00
jcalabro
bc972a4c44
set the atlas texture memory storage mode to shared
2024-01-22 21:24:03 -05:00
Mitchell Hashimoto
7c8b156960
kitty images: support pngs with greyscale/alpha (bpp=2)
...
Fixes #1355
2024-01-22 14:32:27 -08:00
Mitchell Hashimoto
5622ab370f
renderer/metal,opengl: premult alpha for fragment shaders for images
...
Fixes #1346
2024-01-21 14:07:16 -08:00
Mitchell Hashimoto
344c2db097
renderer/metal: initialize layer in init, handle iOS layer
2024-01-18 18:51:01 -08:00
Mitchell Hashimoto
95f729a5fc
renderer/metal: only set wantsLayer for AppKit
2024-01-18 15:36:06 -08:00
Mitchell Hashimoto
26e6e8cec8
apprt/embedded: add iOS platform with uivew
2024-01-18 15:03:03 -08:00
Mitchell Hashimoto
01afa293c8
apprt/embedded: fix initialization on macOS
2024-01-18 08:55:03 -08:00
Mitchell Hashimoto
df09c21103
apprt/embedded: compile for Linux
2024-01-18 08:44:56 -08:00
Mitchell Hashimoto
90ea950d71
renderer/metal: use a semaphore to protect deinit while waiting for GPU
2024-01-16 12:18:55 -08:00
Mitchell Hashimoto
c28f2e36cc
renderer/metal: do not be unhealthy by default :)
2024-01-16 11:28:01 -08:00
Mitchell Hashimoto
376345dcae
macos: detect renderer health failures and show error view
2024-01-16 11:27:18 -08:00
Mitchell Hashimoto
0277a0fb4c
renderer/metal: detect frame commit failures and notify surface
2024-01-16 10:51:36 -08:00
Mitchell Hashimoto
62a2fdcf88
renderer/opengl: set texture size for constrained glyphs
...
This wasn't setting the texture size so the glyphs would show up blank
(zero texture size).
2024-01-15 15:04:05 -08:00
Mitchell Hashimoto
adb7958f61
remove tracy usage from all files
2024-01-13 15:06:08 -08:00
Mitchell Hashimoto
fc30fdfb2b
renderer: do not free new configuration on change
...
Fixes #1271
2024-01-09 21:05:27 -08:00