Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-4763

SourceTree should use the default application for opening the global gitignore (and all files)

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      I want to edit the global gitignore file for my account, but SourceTree opens it in TextEdit rather than my preferred application.

      Reproduction recipe

      1. Open the SourceTree Preferences dialog and go to the Git panel. Next to the Global ignore list field, click the “Edit file” button. SourceTree incorrectly opens the file in TextEdit.
      2. Confirm that I have set the file to open by default in another application.
        1. Open the file using the command-line utility:
          ~/ $ open .gitignore_global

          Result: The file opens in BBEdit.

        2. Locate the file using Finder. It’s a dotfile and so hidden by default, but I have hidden files set to visible. Also because it’s hidden, you have to right-click and choose Open.
          Result: The file opens in BBEdit.

      Extended cut

      I don’t know all the other places SourceTree launches files in this way, but it should use the user’s preferred application for all of them.

      Environment

      SourceTree-Beta Version 2.5.2 (109)
      OS X 10.11.5 (15F34)

              Unassigned Unassigned
              669dd68e54d0 Harold Tessmann III
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: