Skip to content

Open Repository in External Editor #2009

Closed

Description

@joshaber

Split out from #1554

Similar to "Open in Atom" in the Classic apps, but with the ability to customize the opening app.

It should be available on both repository list items and on changed files.

Activity

  1. added
    help wanted
    design-input-needed
    on Jun 14, 2017
  2. removed
    design-input-needed
    on Jun 14, 2017
  3. xt0rted commented on Jun 15, 2017

    @xt0rted
    Contributor

    I use a mix of Visual Studio and VS Code, I've missed the Open in Visual Studio option from the old app.

    An Open in External Diff Tool type option would also be nice as sometimes viewing a diff in Beyond Compare is better than the existing diff (for instance with a docx or a refactor with a lot of whitespace changes which BC can easily ignore).

  4. rlabrecque commented on Jun 15, 2017

    @rlabrecque

    Pulling this in from #1554:

    Open in external program/editor/Atom

    • Changes -> File context menu
    • Repo list -> Repo context menu
    • Changes -> Selected file if it's a binary. http://i.imgur.com/hIBnwpj.png Note: This could use some updating as these other features become available.
    • Default to Atom if we can find it installed to keep things in the GitHub brand.
    • Allow the user to specify their default editor in the options.
    • For repos: have this open the options for you to specify your editor?
    • For files: If Atom is not installed then have just open the default Edit verb if available, otherwise open the file normally with openFile, or would we want it to open the options to specify the editor too?
    • Maybe have a recommendation to install Atom in the options? Brand marketing™©®
    • Future work: Make it file type based? You could have atom as the default, then specify say photoshop for images. Perforce's client does this and it's VERY useful.
  5. joshaber commented on Jun 16, 2017

    @joshaber
    ContributorAuthor

    #2023 added the "Open with External Editor" menu item for changed files 🤘

  6. removed
    help wanted
    on Jun 29, 2017
  7. changed the title [-]Open in External Editor[/-] [+]Open Repository in External Editor[/+] on Jul 24, 2017
  8. joshaber commented on Jul 24, 2017

    @joshaber
    ContributorAuthor

    I changed the title to make it clearer that the scope is specifically about opening repositories in an external editor. We already have the "Open with External Editor" contextual menu item for changed files.

  9. joshaber commented on Jul 24, 2017

    @joshaber
    ContributorAuthor

    We need some design around how one chooses their preferred editor in Preferences.

  10. rlabrecque commented on Jul 24, 2017

    @rlabrecque

    Well, what do we need here, I don't have any tools on me right now so I can't mock this up, but

    Is there design in this area for Open with External Editor for changed files yet? This should be right below it in the preferences and look similar.

    Here's what I think we want for the preferences:

    External Editor to open repositories with:
    " (Icon) Current selected editor | none " "Options like passing %1 for the folder path?" [x]
    [Reset to Atom (if installed)] [browse]
    

    Current selected editor can be the icon, and 'pretty name' of the executable/application if one is selected, if it's not then "None selected" or something like that is probably ideal. The options/ x button can be hidden or greyed out if none is selected.

    [x] removes the current editor, resetting it to none.
    [Reset to Atom] scans the usual paths to see if atom is installed. If it is then it selects it.
    [browse] opens the standard platform browse dialog to select the exe/app.

    You need to let users know about the special keys available in the options, I.E. %1 or what ever for the folder name. It would probably be best to put that option by default, and maybe have '?' with a tooltip at the end that explains it?

  11. joshaber commented on Jul 24, 2017

    @joshaber
    ContributorAuthor

    Well, what do we need here, I don't have any tools on me right now so I can't mock this up, but

    I put this in our Design Review project for @desktop/design to work on.

    Is there design in this area for Open with External Editor for changed files yet?

    Not yet, but for this particular issue, we're only looking at opening repositories. Opening files is somewhat handled by the OS already, and customizing file associations is a larger, more complex task.

  12. shimpossible commented on Jul 24, 2017

    @shimpossible
    Contributor
  13. 20 remaining items

  14. self-assigned this
    on Jul 31, 2017
  15. adamreisnz commented on Aug 3, 2017

    @adamreisnz

    This is one of my most used features of the old app, so I'm glad to see it coming back.

    My only worry after reading the above scope, and looking at the design of the new app, is how to open the current repository in your editor. I wouldn't want to have to click on the repo name, then find the same repo in the list of repos before being able to open it in an editor.

    So maybe a right click on the top left located current repo block could also provide the option to Open in XXXX

  16. shimpossible commented on Aug 3, 2017

    @shimpossible
    Contributor

    I've code that will find where the app is installed for osx. You first find the default handler for an extension and then you find the location of the app. It's possible in Windows but a little more complicated

  17. joshaber commented on Aug 7, 2017

    @joshaber
    ContributorAuthor

    @adamreisnz Would a keyboard shortcut alleviate those concerns?

  18. adamreisnz commented on Aug 7, 2017

    @adamreisnz

    @joshaber a keyboard shortcut would be useful. Even just adding it in the Repository menu would help then we can assign our own shortcuts as well if needed;

    image

    There is an open in terminal already, can probably add "Open in editor" to that list?

  19. rlabrecque commented on Aug 7, 2017

    @rlabrecque

    I think that's on the list under as "Repository menu item"

  20. joshaber commented on Aug 7, 2017

    @joshaber
    ContributorAuthor

    Yup, I think it should definitely have a shortcut 👍

  21. shiftkey commented on Aug 7, 2017

    @shiftkey
    Member

    For reference, #2407 covers both scenarios:

  22. lewispg228 commented on Jan 5, 2018

    @lewispg228

    Hi there, I just submitted a feature request that is related to this. I would love your thoughts. If you have a sec, please check it out here:

    #3731

    Thanks!

  23. gingerbeardman commented on Mar 15, 2018

    @gingerbeardman
    Contributor

    This is closed but the feature is not in the app. What is the status of this? Thanks.

    I still just see “Open in Atom” (which I do not have installed).

    macOS: 10.13.3
    GHD: Hasty Things Done Hastily (223)

    edit: ah, I’m in the wrong repo (using classic GHD app) I was not aware there was a newer one!

  24. locked as resolved and limited conversation to collaborators on Jul 18, 2018
  25. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

design-input-neededenhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions