Is there a way to change or remove the added/removed/modified backgrounds in Git Commit Message?
Looks like predefined colors don't play nicely with every theme out there.
You could modify the git bundle to not set the scope for modified files, but I think you're better of customizing the theme so that those colors do play nice.
To change the theme you open the bundle editor, (Bundles -> Edit Bundles...), select the bundle containing the theme you're using and select the theme under "Themes". Now search for "markup.changed", there you can set the foreground and background color.
Koen
On Apr 18 2016, at 11:52 pm, Igor K <me@igorkozlov.me> wrote:
Is there a way to change or remove the added/removed/modified backgrounds in
Git Commit Message?
Looks like predefined colors don't play nicely with every theme out there.
You could modify the git bundle to not set the scope for modified files, but I think you're better of customizing the theme so that those colors do play nice.
I want the scope to be there, I just don't want TextMate to draw anything for that scope that is not set in the theme.
To change the theme you open the bundle editor, (Bundles -> Edit Bundles...), select the bundle containing the theme you're using and select the theme under "Themes". Now search for "markup.changed", there you can set the foreground and background color.
Tried that of course. I had no background for markup.changed at all. If I set some it gets painted over the predefined background. It's easy to see this if you set the color to #00000088. You'll see that now you get a dimmed yellow, not just half-transparent black. I want to remove the background totally. Having just the colored text looks nicer and cleaner to me. I could use the color of the window background here for "markup.changed" to overlay the yellow if I wasn't using the half-transparent color there.
On 18 Apr 2016, at 23:51, Igor K wrote:
Is there a way to change or remove the added/removed/modified backgrounds in Git Commit Message?
If you place the caret on one of the lines and use ⌃⌘T (Bundes → Select Bundle Item…) and switch to Settings then you should see that there is a “Diff ▸ Style: Changed” style that sets the background/foreground (if you do not immediately see it, enter ‘background’ in the search field).
You can press “Edit…” to edit the item, I suggest you simply uncheck the “Enable this item” in the sidebar of the bundle editor, and do the same for the Inserted and Removed styles. Now press ⌘S to save the changes, and the global styles should be disabled.
It will require re-opening a commit message before the change is in effect.
If you place the caret on one of the lines and use ⌃⌘T (Bundes →
Select Bundle Item…) and switch to Settings then you should see that
there is a “Diff ▸ Style: Changed” style that sets the background/foreground (if you do not immediately see it, enter ‘background’ in the search field).
Oh wow! Thanks! Never knew that ⌃⌘T takes into account the caret position.