DevToys icon indicating copy to clipboard operation
DevToys copied to clipboard

Use single diff editor for text comparer

Open BreeceW opened this issue 1 year ago • 2 comments

What improvement do you think would an existing feature or tool in DevToys?

The boxes in the text comparer tool are redundant and can be simplified to one box.

Solution/Idea

Instead of the current layout, Old text, New text, and Difference, the Old text and New text boxes could be removed and the Difference box could be made editable.

Comments

This can be accomplished by setting originalEditable: true in createDiffEditor. I don’t know how/if this would work for inline mode. If it does not, the Old text and New text boxes could show only for inline mode. But the space savings and usability improvements would be worth it in for side-by-side mode.

BreeceW avatar Apr 02 '23 02:04 BreeceW