coreapi tables: make clone URLs OSC 8 hyperlinks

main

Commit

Soph3mo ago

Custom-scheme URLs like entire://… aren't recognized by terminals' URL matchers, so a click or double-click breaks at the "://" and the entire: prefix is left out of the selection. Wrap URL cells (any value containing "://") in an OSC 8 hyperlink so the terminal treats the whole string — scheme included — as one clickable/selectable unit.

The wrap is applied after column widths are measured on the plain text, so the escape sequence doesn't perturb alignment, and only when color is enabled (TTY, NO_COLOR off) so piped output stays a bare URL for scripting. Uses termenv.Hyperlink (already a dependency).

corecmd_test.go covers the three cases: a URL gets the OSC 8 wrapper, a non-URL doesn't, and the disabled (piped) path passes through plain.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com Entire-Checkpoint: 114879e30651

Checkpoints

CoreAPI Command Output and Mirror Improvements

CodexGPT-5.5
View session
Checkpoint 1

Integrate EntireDB Commands into CLI

Claude Code
View session
Checkpoint 1