Skip to content

rexdiff: update from curl installs, and no bare text at the kitty start - #14

Merged
frinfo702 merged 3 commits into
mainfrom
update-command
Nov 27, 2026
Merged

frinfo702 merged 3 commits into
mainfrom
update-command

Conversation

@frinfo702

Copy link
Copy Markdown
Owner

A rexdiff from the curl script could not update: GitHub kept v0.4.1 as the latest release. GoReleaser publishes the release again after it uploads the files, and without make_latest it sends no "latest" to GitHub. The curl script and the update of a downloaded rexdiff both read releases/latest, so they stayed on v0.4.1. .goreleaser.yml now sets make_latest: true. v0.4.5 is already marked as the latest by hand.

rexdiff update installs the latest release the way the user installed rexdiff (Homebrew, go install, or a download), with the same Updater as the U key of the viewer. A rexdiff that cannot update itself, a build for development or one from Nix, says so.

With renderer = "kitty", the pictures wait at least 150 ms for the colours of the terminal, and until then the bare text of Bubble Tea showed, with gaps in the box lines and in other colours. The same happened after the editor. The view now shows no text until the first pictures went out since Bubble Tea came to the alternate screen; ttyOut then wakes the program, and the next frame draws the text under the pictures.

Tested: go test -race ./.... A build stamped v0.4.1 ran rexdiff update against GitHub and became v0.4.5. The output of the kitty renderer, recorded in a pseudo-terminal, had 142 words of text before the first picture before this change, and none after it. Not seen on a real kitty screen yet, and make_latest is not tried until the next release.

GoReleaser publishes the release again after it uploads the files. Without
make_latest it sends no "latest" to GitHub, so GitHub kept v0.4.1 as the
latest release. The curl install and the update of a downloaded rexdiff
both read releases/latest, so they stayed on v0.4.1.
rexdiff update installs the latest release the way the user installed
rexdiff, with the same Updater as the U key of the viewer. Before, a user
outside the viewer had to run the curl script again.
With renderer = "kitty", the pictures wait for the colours of the
terminal to settle, at least 150 ms. Until then the text of Bubble Tea
showed as it is, with gaps in the box lines and in other colours, and
then changed into the pictures. The same happened after the editor,
which takes the pictures off the screen.

The view now shows no text until pictures went out since Bubble Tea came
to the alternate screen. ttyOut then wakes the program, and the next
frame draws the text under the pictures, for the keys and the selection
of the pane.
@frinfo702
frinfo702 merged commit 30b22fd into main Nov 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant