3875 Commits

Author SHA1 Message Date
Mitchell Hashimoto
4be994c58a update README 2023-11-22 22:27:14 -08:00
Mitchell Hashimoto
dead82bcf1 update README to cover themes 2023-11-22 22:25:58 -08:00
Mitchell Hashimoto
5acaf3279d apprt/gtk: use new resources dir 2023-11-22 22:10:16 -08:00
Mitchell Hashimoto
c7a1e074dd don't use package manager for iterm2 themes yet 2023-11-22 22:08:27 -08:00
Mitchell Hashimoto
f25a136ea5 cli: +list-themes 2023-11-22 21:50:16 -08:00
Mitchell Hashimoto
84e71c8c1f config: update themes docs 2023-11-22 21:38:05 -08:00
Mitchell Hashimoto
a6457c2c1c macos: copy themes 2023-11-22 21:37:59 -08:00
Mitchell Hashimoto
4dfbb79f8c config: load themes 2023-11-22 21:34:26 -08:00
Mitchell Hashimoto
45a4be6873 core: move resources dir to main global state 2023-11-22 21:12:01 -08:00
Mitchell Hashimoto
0dc5516ac6 config: add "theme" config, track inputs 2023-11-22 21:08:39 -08:00
Mitchell Hashimoto
7a91a23e40 build: add iterm2 themes repository, install into resources dir 2023-11-22 21:08:26 -08:00
Mitchell Hashimoto
9ee1c939fd Merge pull request #940 from mitchellh/macos-tab-reorder
macos: relabel tabs when they're reordered with the mouse
2023-11-22 11:44:35 -08:00
Mitchell Hashimoto
7036676ec0 macos: relabel tabs when they're reordered with the mouse
Prior to this commit, the shortcut shown on the tab would not be updated
until a focus change occurred. There is no event for this so the way we
do it is by listening for the tab view frame to change, comparing the
window state, and then updating labels.
2023-11-22 11:43:04 -08:00
Mitchell Hashimoto
ec3b570b3e terminal: know about autorepeat mode
Ignore it because xterm does
2023-11-21 18:48:05 -08:00
Mitchell Hashimoto
34cfe0abab xterm audit: DECOM (origin mode) 2023-11-21 18:32:00 -08:00
Mitchell Hashimoto
de25ba231e Merge pull request #936 from mitchellh/gtk-cursor
apprt/gtk: set default cursor to be "text" (ibeam)
2023-11-21 17:13:20 -08:00
Mitchell Hashimoto
2ce3db7dc2 apprt/gtk: set default cursor to be "text" (ibeam)
Fixes #933

On startup, we'd set the cursor to "text" but we wouldn't store that as
our cursor so when the mouse was unhidden, we'd go back to "default".
This PR changes it so that on surface startup we set and store the
"text" cursor so as the cursor hides/shows it reverts to the proper
value.
2023-11-21 17:10:44 -08:00
Mitchell Hashimoto
1df88ae4aa Merge pull request #935 from mitchellh/kitty-gl-convert
renderer/opengl: convert Kitty images from RGB to RGBA
2023-11-21 16:57:50 -08:00
Mitchell Hashimoto
9198069f14 Merge pull request #934 from vancluever/vancluever-nix-update-zigcachehash-and-add-note
nix: update zigCacheHash, mention that building pkg requires src
2023-11-21 16:57:37 -08:00
Mitchell Hashimoto
247b92ce07 renderer/opengl: convert Kitty images from RGB to RGBA
Fixes #932

We have to do this for Metal as well (this code is copied from Metal)
since Metal doesnt even allow RGB textures. I couldn't figure out a way
to get the A value to be "255" (byte), it seems to always be set to 1
which gets normalized to 1/255, so lets just manually convert.
2023-11-21 16:56:02 -08:00
Chris Marchesi
01663c8b29 nix: update zigCacheHash, mention that building pkg requires src
This updates the zigCacheHash and just adds a note mentioning that using
the package will require you to rebuild LLVM 17 and Zig, and directs
people to use the devShell until this is resolved.

This is likely good advice for most people until such time that both are
in nixpkgs (or at least LLVM 17 as it's by far the bigger culprit here).
2023-11-21 15:59:24 -08:00
Mitchell Hashimoto
b022816275 Merge pull request #930 from mitchellh/term-scroll
terminal: fix cursor pos when resizing more rows not at bottom
2023-11-21 11:32:07 -08:00
Mitchell Hashimoto
44e28e43d3 terminal: fix cursor pos when resizing more rows not at bottom
Fixes #906

This changes our resize behavior when increasing row height.

If the cursor was originally at the bottom of the viewport, existing
scrollback (if it exists) will be "pulled down" from the top,
effectively keeping the cursor at the bottom. This is the behavior
today, prior to this commit.

If the cursor is not at the bottom of the viewport, scrollback will NOT
be "pulled down" and instead blank lines will be added _below_. This is
new behavior.
2023-11-21 11:27:02 -08:00
Mitchell Hashimoto
7fbcc46106 Merge pull request #929 from mitchellh/kitty-alt
terminal: switching alt/primary screen invalidates Kitty image state
2023-11-21 08:40:51 -08:00
Mitchell Hashimoto
fd84178cc7 terminal: switching alt/primary screen invalidates Kitty image state 2023-11-21 08:37:41 -08:00
Mitchell Hashimoto
9cafd17e86 update ziglyph 2023-11-21 08:34:13 -08:00
Mitchell Hashimoto
962d966dec Merge pull request #927 from vancluever/vancluever-nix-update-cache-hash
nix: update zigCacheHash
2023-11-21 08:30:55 -08:00
Mitchell Hashimoto
9492d7e966 Merge pull request #928 from rockorager/osc4-fix
osc: fix OSC4 response
2023-11-21 08:18:30 -08:00
Tim Culverhouse
469c88c0c6 osc: fix OSC4 response
When reporting colors via OSC4, the index must also be reported.
2023-11-21 10:00:14 -06:00
Chris Marchesi
07e16eb7c1 nix: update zigCacheHash
Just a bump to zigCacheHash to address dependency updates.
2023-11-20 23:50:31 -08:00
Mitchell Hashimoto
bed49e59b3 Merge pull request #925 from vancluever/vancluever-nix-releasefast
nix: use `-Doptimize=ReleaseFast`
2023-11-20 21:39:03 -08:00
Mitchell Hashimoto
9d7864ff6c Merge pull request #926 from mitchellh/kitty-bug
renderer: handle Kitty images where z < 0 for all placements
2023-11-20 21:38:52 -08:00
Mitchell Hashimoto
cf8a0bdaec renderer: handle Kitty images where z < 0 for all placements 2023-11-20 21:34:17 -08:00
Chris Marchesi
fa9a6eb88d nix: use -Doptimize=ReleaseFast
I figured out how to override the hook default build flags so that we
can set -Doptimize=ReleaseFast. :)

There's a long conversation that's gone on about this in nixpkgs, but
it's fairly well summed up here:
https://github.com/ziglang/zig/issues/14281#issuecomment-1624220653

I'd imagine we will want to adopt whatever is eventually done - after
this, we can remove the override and rely on more first-class
configuration, or logic in build.zig.
2023-11-20 21:20:38 -08:00
Mitchell Hashimoto
86f8bd20db Merge pull request #924 from mitchellh/disco-clear
font: fallback fonts need to deinit their unused deferred faces
2023-11-20 21:06:58 -08:00
Mitchell Hashimoto
89fe07271e font: fallback fonts need to deinit their unused deferred faces
Fixes #885

Interestingly, this isn't that big of a leak for whatever reason on
macOS. But on Linux with fontconfig this is a MASSIVE memory leak.
2023-11-20 21:05:01 -08:00
Mitchell Hashimoto
bb8e5b9f76 terminal: handle width=3 by pretending width=2 for now 2023-11-20 20:41:58 -08:00
Mitchell Hashimoto
0430758b60 Merge pull request #923 from vancluever/vancluever-config-gtk-titlebar
apprt/gtk: let GTK titlebar be toggleable
2023-11-20 20:29:47 -08:00
Chris Marchesi
39e3fca210 apprt/gtk: let GTK titlebar be toggleable
This adds the gtk-titlebar option, which allows you to toggle the GTK
titlebar on (default) and off.

Under some circumstances (e.g. tiling WMs with titlebars enabled), one
may wish to disable the GTK titlebar/CSD for aesthetic reasons. This
allows you to do that.

Fixes #920.
2023-11-20 20:07:11 -08:00
Mitchell Hashimoto
3c98c6375a terminal: handle width==3 glyphs by just pretending they're width 2 2023-11-20 19:55:06 -08:00
Mitchell Hashimoto
d4e149a26b Merge pull request #922 from mitchellh/update-deps
Update some deps for non-mutated var
2023-11-20 19:53:45 -08:00
Mitchell Hashimoto
d7d6537574 update zig-objc 2023-11-20 19:32:07 -08:00
Mitchell Hashimoto
b65518dd2b update libxev 2023-11-20 19:27:22 -08:00
Mitchell Hashimoto
5bb430e03f Merge pull request #921 from mitchellh/zwj
font: shaper should not look up U+200D for consistent fonts
2023-11-20 19:21:16 -08:00
Mitchell Hashimoto
42c4f52711 font: shaper should not look up U+200D for consistent fonts
Related to #914

U+200D is the zero-width joiner character used for multi-codepoint
Emojis. When faced with a multi-codepoint grapheme, the font shaper must
find a font that provides _all codepoints_ consistently. However, U+200D
isn't meant to be provided by any font. As a result, the font shaper
search ends up iterating over every font looking for a match.
2023-11-20 19:12:37 -08:00
Mitchell Hashimoto
4bde931b64 Merge pull request #919 from mitchellh/gtk-ime
apprt/gtk: support IME popups such as Asian language input
2023-11-20 19:01:23 -08:00
Mitchell Hashimoto
f2c1e18647 apprt/gtk: support IME popups such as Asian language input
Fixes #882

This hooks up all the GTK.IMContext things properly so that we support
switching input methods, popups, etc. This should improve our support
for asian languages, emoji input, etc.
2023-11-20 18:08:23 -08:00
Mitchell Hashimoto
7fba402499 Merge pull request #918 from mitchellh/gtk-f10
apprt/gtk: disable GTK capturing F10
2023-11-20 14:16:56 -08:00
Mitchell Hashimoto
67119e6433 apprt/gtk: disable GTK capturing F10
Fixes #894
2023-11-20 14:16:13 -08:00
Mitchell Hashimoto
63625808c8 Merge pull request #916 from mitchellh/update-zig
update zig
2023-11-20 14:07:59 -08:00