Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treating each line with a difference as a separate difference #2618

Open
sdottaka opened this issue Jan 15, 2025 Discussed in #2616 · 1 comment
Open

Treating each line with a difference as a separate difference #2618

sdottaka opened this issue Jan 15, 2025 Discussed in #2616 · 1 comment

Comments

@sdottaka
Copy link
Member

Discussed in #2616

Originally posted by xeophyte January 15, 2025
Is it possible to make each line with a difference treated as a separate difference when comparing files? Currently, if differences are in adjacent lines, it is treated as one difference. This makes no sense.

@meteorquake
Copy link

meteorquake commented Feb 24, 2025

I would generally agree. Quite often I want to part-merge differences, and what would be most helpful is that you could swipe a highlight across lines and the wholly and partly encompassed differences can be merged across.
If two lines have 3 differences marked and you highlight across 2 of them, then the merge across would only normalise those two differences.
If nothing is selected then maybe a user option could determine what to do - copy the line or the entire block of lines.
d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants