Page MenuHomePhabricator

Improve offset/range inline behavior for rich diffs and unified diffs
ClosedPublic

Authored by epriestley on May 14 2020, 10:53 PM.
Tags
None
Referenced Files
F19104225: D21257.id50619.diff
Fri, Dec 5, 1:05 PM
F19078229: D21257.diff
Mon, Dec 1, 5:29 PM
F19078164: D21257.diff
Mon, Dec 1, 5:17 PM
F19078162: D21257.diff
Mon, Dec 1, 5:16 PM
F19059580: D21257.id50619.diff
Sat, Nov 29, 5:45 AM
F19058973: D21257.diff
Sat, Nov 29, 4:04 AM
F19038781: D21257.id.diff
Wed, Nov 26, 5:37 AM
F18937702: D21257.diff
Nov 11 2025, 12:17 AM
Subscribers
None

Details

Summary

Ref T13513. The way I'm highlighting lines won't work for Jupyter notebooks or other complex content blocks, and I don't see an obvious way to make it work that's reasonably robust.

However, we can just ignore the range behavior for complex content and treat the entire block as selected. This isn't quite as fancy as the source behavior, but pretty good.

Also, adjust unified diff behavior to work correctly with highlighting and range selection.

Test Plan
  • Used range selection in a Jupyter notebook, got reasonable behavior (range is treated as "entire block").
  • Used range selection in a unified diff, got equivalent behavior to 2-up diffs.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.May 14 2020, 11:02 PM
This revision was automatically updated to reflect the committed changes.