The log consists of a snapshot header followed by per-line entries.
Each snapshot begins with a header containing metadata about the current view state, such as pane, file, mode, window_start, and visible_render_range.
Per-line Entries
Each line in the render is logged with specific attributes. When debugging, focus on these fields:
| Field | Meaning |
|---|
disp | Display index range in the current render window |
gdisp | Global display index range, with the window offset applied |
h | Hunk index, or - when there is none |
scope | Whether the line is inside the current hunk scope |
show | Whether ViewLine.show_hunk_extent is set |
kind | Line type (e.g., context, added, or deleted) |
changes | Whether the line contains actual changes |
old and new | Old and new line numbers, when present |
Note: In split mode, logs show old and new display indices instead of a single disp value.
OYO_VIEW_DEBUG ts_ms=... pane=unified file_index=0 file="path/to/file"
mode=UnifiedPane stepping=false line_wrap=false diff_status=Ready placeholder=false view_len=1234 windowed=true window_start=0 window_total=5000 viewport_h=40 viewport_w=120 scroll_global=200 render_scroll=200
state current_hunk=3 total_hunks=8 last_nav_was_hunk=true cursor_change=512 show_extent_step=false scope_hunk=3 scope_from_cursor=true step_direction=None animation_phase=Idle
visible_render_range=200..239 context=2
L raw=210 disp=200-200 gdisp=200-200 h=3 scope=true show=true kind=Context changes=false old=100 new=100 act=false prim=false id=512 wrap=1 txt="..."