Using BBEdit as the 'Diff Tool' in Git Tower I can't turn on ignore-whitespace settings

733 views
Skip to first unread message

Phillip Apley

unread,
Nov 11, 2014, 1:00:23 PM11/11/14
to bbe...@googlegroups.com
Is there any way to change the default settings for BBEDit so that when it launches in as the "Diff Tool" or "Merge Tool" (compare-file mode) from Git Tower or other apps, it will ignore 
leading and trailing whitespace? When comparing from the 'Search' -> 'Find Differences' menu there are checkboxes for these settings.
Once the diff is launched I don't see any way to change them and recalculate the diffs.

This could be managed with a preference, or global environment variable before the app launches, or ideally an option click on the 'recalculate' button, or a checkbox that can be clicked after the app is launched.

If there's a way to do this from the BBEdit command line tools API, it might be possible for me to intercept what Tower is doing to launch it, but I imagine that will be difficult and not survive upgrades.

This is an essential feature. Please let me know if there's a way to do it or if it can be added.

It would also be very valuable to have control over ignoring line ending differences (Unix/Mac; CR, LF, CRLF) in this context as well.
An alternative I've found is to use Kaleidoscope, which has a check box for this, but doesn't let you edit the files directly, so I'd have to go back and forth between BBEdit and Kaleidoscope, and it wouldn't work well.

Fletcher Sandbeck

unread,
Nov 11, 2014, 1:56:16 PM11/11/14
to bbe...@googlegroups.com
It looks like Git Tower launches the diff tool through the command line and there are command line switches for these preferences.  What you'd do is create a shell script wrapper which takes the parameters that git sends to the diff tool and pass them to the bbdiff tool with the appropriate command line switches set.

http://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration

Usage: bbdiff [options] FILE1 FILE2

               --case-sensitive
               --flatten-folders
               --help
               --ignore-curly-quotes
               --ignore-spaces
               --ignore-extra-spaces
               --ignore-leading-spaces
               --ignore-trailing-spaces
               --resume
               --reverse
               --short-version
               --show-identical-files
               --skip-shielded-folders
               --text-files-only
               --version
               --wait

[fletcher]

--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"sup...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To post to this group, send email to bbe...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages