Skip to content

Add file context menu in history view #2845

Closed

Description

@xPaw

Desktop 1.0.1 on Windows 10.

There's an context menu (right click) on files when viewing changed files which allows opening it in an external editor. It would be useful to have a similar menu in history view to open a file in external editor or show in explorer.

Activity

  1. joshaber commented on Sep 22, 2017

    @joshaber
    Contributor

    Thanks @xPaw! I agree that would be nice.

    For anyone interested in pursuing this, we'd need to make sure the file still exists on disk before letting the user take any actions.

  2. j-f1 commented on Sep 22, 2017

    @j-f1
    Contributor

    The app could also checkout the file as it was in that commit to a temporary directory, then open the file from there. I don’t know how that could be changed to work for revealing the file in Finder/Explorer.

  3. shiftkey commented on Jan 5, 2018

    @shiftkey
    Member

    Bumping this issue with the feedback from #3731

    The reason is, I often am looking at a file in the commit history, and I want to quickly navigate directly to that file (to begin working on it again, or view the entire thing in my editor of choice). Currently, I must mannually navigate from the home directory of the repository to where that file is.

  4. lewispg228 commented on Jan 5, 2018

    @lewispg228

    I would definitely love to see this feature happen! Thanks for responding to my submission ( issue #3731 ) so quickly, and sorry I didn't find this issue during my initial searching.

  5. tooomm commented on Jan 12, 2018

    @tooomm

    I want to see that as well!
    I highly suggest not only to allow to open files via context menu, but more intuitively with a simply double click!

    Especially in the Changes view that would be great to further work with the file or e.g. fix errors spotted in the in-app diff.

    For History tab it makes only sense if it would open the file in the browser at the related commit maybe.

  6. added
    help wanted
    on Jan 12, 2018
  7. stuta commented on Feb 3, 2018

    @stuta

    I do commits in vscode. This app is not useful without this feature. Should not be hard to do.

  8. shiftkey commented on Feb 3, 2018

    @shiftkey
    Member

    @stuta could you open a new issue and provide more details about what you would like to see supported?

  9. crea7or commented on Feb 5, 2018

    @crea7or
    Contributor

    Is there someone who will do this feature or maybe I can try to do it?

  10. iAmWillShepherd commented on Feb 5, 2018

    @iAmWillShepherd
    Contributor

    @crea7or , we'd love it if you tried to give this a shot! 🎉

    Is there any information you need from us to make this easier?

  11. crea7or commented on Feb 11, 2018

    @crea7or
    Contributor

    @iAmWillShepherd I think no, I just need some time to learn about React since I'm C++/C#/Java developer (currently working with chromium sources and github client is the one that can work with it).

  12. crea7or commented on Feb 18, 2018

    @crea7or
    Contributor

    Ok, this is my first code in React. I think my code violates a lot of your rules, but can someone review it and maybe help me to send it as pull requst when I'll fix all possible problems?
    Only two menu items added (open in explorer/open in default programm) and no checks added for file (presist on the disk or not).
    here is this commit with menu added in repo history

  13. j-f1 commented on Feb 18, 2018

    @j-f1
    Contributor

    @crea7or That looks pretty good to me! Feel free to open a pull request and tell us when you’re ready to review. We generally do our reviews in the context of a pull request, then merge once the changes have been made. Don’t worry about squashing your commits — it’s okay to have many commits in a PR.

  14. crea7or commented on Feb 18, 2018

    @crea7or
    Contributor
  15. locked as resolved and limited conversation to collaborators on Jul 17, 2018
  16. 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

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions