detached 527daf7

tui: disable iTerm inline images by default

commit
527daf7df7cfa47ecf611770a37961f50974e260
author
patriceckhart · · 2026-05-03 09:08 UTC
parent
9e03b3d
signature
unsigned
refs
tag: v0.1.43
1 file · +10 -1
M internal/tui/image.go +10 -1
@@ -69,9 +69,18 @@ func detectImageProtocolAuto() ImageProtocol {
6969 if termProgram == "ghostty" || termProgram == "kitty" {
7070 return ImageProtocolKitty
7171 }
72- if termProgram == "iTerm.app" || termProgram == "WezTerm" {
72+ if termProgram == "WezTerm" {
7373 return ImageProtocolITerm2
7474 }
75+ // iTerm2's OSC 1337 inline image rendering is incompatible with
76+ // zot's full-screen per-row redraw: subsequent row clears erase
77+ // all but the first rendered image row, and doNotMoveCursor=1 is
78+ // not reliable across iTerm versions. Leave ghostty/kitty untouched
79+ // and fall back to the text placeholder in iTerm by default. Users
80+ // can still force the protocol with ZOT_INLINE_IMAGES=iterm.
81+ if termProgram == "iTerm.app" {
82+ return ImageProtocolNone
83+ }
7584 if strings.Contains(strings.ToLower(termProgram), "ghostty") {
7685 return ImageProtocolKitty
7786 }
@@ -69,9 +69,18 @@ func detectImageProtocolAuto() ImageProtocol {
69 if termProgram == "ghostty" || termProgram == "kitty" {69 if termProgram == "ghostty" || termProgram == "kitty" {
70 return ImageProtocolKitty70 return ImageProtocolKitty
71 }71 }
72- if termProgram == "iTerm.app" || termProgram == "WezTerm" {72+ if termProgram == "WezTerm" {
73 return ImageProtocolITerm273 return ImageProtocolITerm2
74 }74 }
75+ // iTerm2's OSC 1337 inline image rendering is incompatible with
76+ // zot's full-screen per-row redraw: subsequent row clears erase
77+ // all but the first rendered image row, and doNotMoveCursor=1 is
78+ // not reliable across iTerm versions. Leave ghostty/kitty untouched
79+ // and fall back to the text placeholder in iTerm by default. Users
80+ // can still force the protocol with ZOT_INLINE_IMAGES=iterm.
81+ if termProgram == "iTerm.app" {
82+ return ImageProtocolNone
83+ }
75 if strings.Contains(strings.ToLower(termProgram), "ghostty") {84 if strings.Contains(strings.ToLower(termProgram), "ghostty") {
76 return ImageProtocolKitty85 return ImageProtocolKitty
77 }86 }

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 477

↑↓ moveenter openesc close