sublimehq / sublime_merge

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

Enhance visibility of the extent of a hunk in diff viewer #1351

Open patryklech opened 2 years ago

patryklech commented 2 years ago

When viewing diffs in dark mode, it is hard to see the extent of each hunk, as hunk headers don’t look much different from the diffed text itself.

When the mouse hovers over a hunk, it would be good to see a visual feedback illustrating the extent of the hunk. It could be done, for example, by adjusting the background color of the hunk, or drawing a frame around it.

It would be nice to be able to adjust the color of hunk headers too, and it would serve as an alternative to the enhancement proposed above, which would be easier to implement, I bet!

patryklech commented 2 years ago

To enhance visibility of hunks, I played around a bit with the dark theme/color scheme and made it much more palatable to myself (subjective, I know). See the screenshot below. If you like it, download Sublime_Merge_enhanced_dark_color_theme.zip and unzip it into the User subdirectory in your user loose packages directory (see below), then switch SM to the dark theme. The ZIP file contains two files which redefine the dark theme and color scheme (Merge Dark.sublime-theme and Mariana.sublime-color-scheme. You may need to restart SM for the files to be picked up, though changes to the files seem to be picked up immediately).

The directory where the files should be unzipped should be as follows: Linux: ~/.config/sublime-merge/Packages/User/ Windows: %APPDATA%\Sublime Merge\Packages\User Mac: ~/Library/Application Support/Sublime Merge/Packages/User

Sublime_Merge_enhanced_dark_color_scheme