DevToys icon indicating copy to clipboard operation
DevToys copied to clipboard

Use single diff editor for text comparer

Open BreeceW opened this issue 2 years 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

DevToys text compare tool with one big side by side editor. Each side is labeled “Can edit here” Here’s a rough mockup.

BreeceW avatar Apr 02 '23 02:04 BreeceW

That's something we could do, but I'm wondering how this would work with the Inline mode, since the editor would not be splitted vertically. As you said, we could display the original text box only in Inline mode, but I'm not super fan of it either.

image

veler avatar Apr 02 '23 03:04 veler