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
Unknown Object (File)
Mon, Dec 16, 5:53 AM
Unknown Object (File)
Sat, Nov 30, 6:16 PM
Unknown Object (File)
Wed, Nov 27, 2:02 PM
Unknown Object (File)
Nov 20 2024, 1:10 AM
Unknown Object (File)
Nov 18 2024, 7:10 PM
Unknown Object (File)
Nov 17 2024, 7:40 AM
Unknown Object (File)
Nov 9 2024, 4:13 PM
Unknown Object (File)
Oct 22 2024, 7:18 PM
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.