sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
276 stars 14 forks source link

verify full stage when already partially staged #1740

Open kimbauters opened 1 year ago

kimbauters commented 1 year ago

Problem description

When you want to discard a change, the app rightfully makes you confirm this change. A similar behaviour should be added when you already partially staged a file (e.g. by staging hunks and/or lines), and subsequently hit the stage button. This button is too close to the stage hunk button and is too often clicked in error.

Preferred solution

Make the Stage button behave similarly to the Discard button by requiring a second click to verify. Only enable this behaviour when a file is already partially staged.

Alternatives

Move the Stage button so it is not so close to the Stage Hunk button (not preferred).