Skip to content

Collapsable grouping repository list by organisation #2037

Closed

Description

@njbmartin

Description

Would be great to organise repositories by their organisation/owner and be able to collapse/expand each group.

I currently have about 35+ repos cloned locally 🙈

Activity

  1. joshaber commented on Jun 29, 2017

    @joshaber
    Contributor

    Thanks for the suggestion!

    This idea is interesting for the future, but this is beyond the scope of our current roadmap.

    I'm going to add the future-proposal label to this issue and close it out, so that we don't get overwhelmed with our backlog! We'll revisit these as part of our next planning session.

  2. adamreisnz commented on Aug 2, 2017

    @adamreisnz

    @joshaber it's disheartening that this issues being pushed into the future again. It's been suggested literally years ago on the github beta issue tracker, and I've been a part of those discussions too. At that time, it was being pushed back as well, even though there were a lot of people asking for this (or any way of organising repo's for that matter).

    I don't think that just because the "old" client has been discontinued and replaced by this new one, all those suggestions that applied to the "old" one should be discarded so easily. There were a lot of valid idea's there and good points raised that still apply now. This was one of them, and it doesn't seem like an overly complicated thing to implement, yet it would make a lot of people's lives a lot easier by helping them find repo's quickly. I have about 50-70 repo's I need to manage for various organisations and currently I am struggling with this on a daily basis.

    Could you somehow dig up those old suggestions and discussions and maybe go over them and see if there's overlap with what's being asked here, and see if you can prioritise those issues?

  3. joshaber commented on Aug 2, 2017

    @joshaber
    Contributor

    There are a few pieces to this that I wanna tease apart.

    You're absolutely right that this and similar issues have been suggested for years. I remember getting suggestions like this back when we first launched GitHub for Mac over 6 years ago (😱). But a suggestion's age isn't the sole determinant of how it is prioritized. There are a lot of other factors. How many users does it effect? How serious are the problems it is causing/solving? How does it fit the vision for the product? What's the opportunity cost of doing this over another thing? etc.

    Our current roadmap reflects feedback from both the old and new apps. Features likes conflict resolution and CI status have similarly been requested for years.

    It's also open to change. Just because something's not on the roadmap now doesn't mean it won't be.

  4. adamreisnz commented on Aug 2, 2017

    @adamreisnz

    But a suggestion's age isn't the sole determinant of how it is prioritized. There are a lot of other factors. How many users does it effect? How serious are the problems it is causing/solving? How does it fit the vision for the product? What's the opportunity cost of doing this over another thing? etc.

    I appreciate that, but 6 years is a long time for a very annoying issue to affect even a relatively smaller group of people. And there is a lot of demand for it, but it's hard to keep track of because the issues that are opened for it seem to keep getting closed:

    These are a few I found with a quick search:

    And other categorisation related issues:

    I've looked at the roadmap, but couldn't spot anything on it that has to do with organising or categorising repositories, even though there's so many issues raised about it. It clearly is a pain point for many users.

    Can you reconsider revisiting categorising repo's in one of your next planning sessions, and maybe add something tangible on the roadmap? ❤️

    Or are you open to PR's for it even if the feature is not on the roadmap?

  5. joshaber commented on Aug 2, 2017

    @joshaber
    Contributor

    We will certainly consider it! We generally plan in 6 month blocks. Since we just had a team meeting about a month ago, our next one will probably be in early 2018.

    Or are you open to PR's for it even if the feature is not on the roadmap?

    There's no one-size-fits-all answer for this. It really depends on the exact scope of the feature. Your best bet is to outline exactly what you want to do, start small, and get feedback early and often.

  6. njbmartin commented on Aug 10, 2017

    @njbmartin
    Author

    @joshaber As an open source repo, am I right to assume that if we submit a PR with a useful feature such as this which is not in scope, it will be considered for the next release and not closed due to out of scope?

  7. joshaber commented on Aug 10, 2017

    @joshaber
    Contributor

    @njbmartin It's hard to say in the abstract. As I said above, your best bet is to outline exactly what you want to do, start small, and get feedback early and often.

  8. ruipacheco commented on Sep 4, 2017

    @ruipacheco

    Is this going somewhere? I really need to organise a large number of repositories and am tired of the errors generated by Source Tree on OSX.

  9. joshaber commented on Sep 5, 2017

    @joshaber
    Contributor

    @ruipacheco It's not on our current roadmap, but past 1.2 it's pretty fuzzy.

  10. mcfarljw commented on Aug 6, 2018

    @mcfarljw

    The main reason I want something like this is because lets say I have organization1/website and organization2/website it makes it more clear when they are grouped by organization. Right now the best way to handle this would is to rename both projects to organization1/organization1-website and organization2/organization2-website which isn't always an option.

  11. adamreisnz commented on Aug 6, 2018

    @adamreisnz

    Yes I think that's the most common use case. In our case we have separate repositories for client, server, etc. and all of our projects are hence called foo/client, foo/server, which made them indistinguishable from bar/client or bar/server. We've also resorted to calling them foo/foo-client and bar/bar-client.

  12. elliotcm commented on Oct 10, 2018

    @elliotcm

    My main need for it is one of my clients has over a thousand repositories, so even working on a small fraction will overwhelm the repo listing (I have 88 checked out for them right now), and that's just for one client. Mix in a handful of repos from other clients and it becomes very difficult to navigate.

  13. peteamundson commented on Nov 15, 2018

    @peteamundson

    We have the same issues with our repos, where we have /[client]/[project]/ and almost all projects are named the same. Not having a way to organize or create custom displayed names (or maybe even inclusion of the folder structure like GitKraken) itself, makes using this pretty difficult. We could go through and do a large set of folder renames, but seems like a feature that other tools have (like SourceTree and GitKraken) and many people expect.

  14. billygriffin commented on Dec 20, 2018

    @billygriffin
    Contributor

    Thanks for the idea! I'm removing future proposal in favor of #6460 which tries to capture all the things™️ in a more unified way since there have been so many different implementation ideas suggested.

  15. ujLion commented on May 2, 2019

    @ujLion

    Annotation 2019-05-02 221401
    It's a "nightmare" - with local repositories! Please add this feature soon so that sub projects can be organized under a collapsible organization head, which can be manually specified even for local repositories.

  16. njbmartin commented on May 2, 2019

    @njbmartin
    Author

    From what I've seen, this functionality is in the beta already. I'm a little confused as to why you have so many duplicate names though...

  17. ujLion commented on May 2, 2019

    @ujLion

    Oh that's great news! Thanks.
    I like to organize the sub-project directories with their generic names under the parent directory with the project title. And I have a structure like this:
    ujnotes
    -- website\project
    -- website\project\interim
    -- website\project\framework
    wcodes
    -- website\project
    -- website\project\interim
    -- website\project\framework
    -- android\project

  18. billygriffin commented on May 2, 2019

    @billygriffin
    Contributor

    @ujLion Thanks! As long as these are GitHub repos, I think you should be in good shape with the new direction in #6460 that is currently in beta and should be released to production in about a month. Let us know what you think!

  19. ujLion commented on May 2, 2019

    @ujLion

    They are but all local only repos :(

  20. billygriffin commented on May 2, 2019

    @billygriffin
    Contributor

    @ujLion Sorry - that's a bummer. It's trickier there and we have no immediate plans to work on that because we haven't seen that people have a ton of local repos that aren't connected to GitHub in any way. However, if we're seeing that as a widespread pain point, we're happy to revisit.

  21. ruipacheco commented on May 2, 2019

    @ruipacheco

    This is definitely a pain point to me.

  22. ujLion commented on May 16, 2019

    @ujLion

    Earlier I would edit the sqlite cache.db file at %LocalAppData%\GitHub\ to override the names. But perhaps now the name is being computed dynamically from the path.

  23. ujLion commented on May 16, 2019

    @ujLion

    Workaround:

    To override displayed repo names ( to be run in dev-tools: [View > Toggle developer tools] )
    Best to save it as a snippet (Sources > Snippets) [unfortunately this will have to be run on each start]

    function getElementByXpath(path) {
      return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
    }
    
    function overrideRepoNames(repoNames) {
      for (x in repoNames) {
        getElementByXpath('//*[@id="__ListRow_1-' + (parseInt(x) + 1) + '"]/div/div[2]/span/span').innerHTML = repoNames[x].replace(new RegExp('\\\\','g'), ' \\ ')
      }
    }
    
    repoNames = ['Ujnotes\\Website\\Framework', 'WCode\\Website\\Framework', 'WCode\\Website\\interim', 'WCode\\Location\\interim', 'Ujnotes\\Website\\interim', 'WCode\\Location\\Paper', 'WCode\\Website\\Project', 'WCode\\Android\\Project', 'WCode\\Windows\\Project', 'WCode\\Location\\Project', 'Ujnotes\\Website\\Project'];
    
    getElementByXpath('//*[@id="desktop-app-toolbar"]/div[1]/div/div/button').addEventListener('click', function(event) {
      setTimeout(function() {
        if(getElementByXpath('//*[@id="foldout-container"]') != null)
            overrideRepoNames(repoNames)
      }, 50);
    });
    

    Annotation 2019-05-17 064721

    Here is AHK script to automate the execution of the script snippet at launch:

    Run, "%LocalAppData%\GitHubDesktop\GitHubDesktop.exe"
    
    winWait, GitHub Desktop
    sleep, 1000
    send, {CTRLDOWN}{SHIFTDOWN}i{SHIFTUP}{CTRLUP}
    sleep, 2000
    send, {CTRLDOWN}{SHIFTDOWN}p{SHIFTUP}{CTRLUP}
    sleep, 2000
    send, {BACKSPACE}
    sleep, 100
    send, {!}
    sleep, 100
    send, {ENTER}
    sleep, 500
    send, {CTRLDOWN}{SHIFTDOWN}i{SHIFTUP}{CTRLUP}
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions