Skip to content

Fold long hunks with a settings toggle

Choose a tag to compare

@JanEickholt JanEickholt released this 16 Sep 19:29
· 8 commits to master since this release
v1.8.0
19de660

New optional Fold long hunks setting (Settings → Plugins → Inline diff): hunks longer than the configured visible rows per end collapse their middle behind a toggle bar.

  • Stepper for visible rows per end, default 8, clamped to 1..100 (en and zh)
  • Click / Enter / Space reveals the hidden middle; the bar that replaces it folds it back
  • Hovering an open bar previews what would be hidden in both columns
  • Truncation policy stays intact: bars never appear on already-truncated hunks and never advertise more lines than expanding actually renders

Feature idea by @zjh1159086960-crypto in #1.