Files icon indicating copy to clipboard operation
Files copied to clipboard

Feature: Add git repo section to the sidebar (discussion)

Open yaira2 opened this issue 1 year ago • 13 comments

What feature or improvement do you think would benefit Files?

Microsoft is adding a git section to the File Explorer sidebar and considering we're in the midst of working on our own git integration, it's a good time to work on this feature.

Requirements

  • Add git section to the sidebar (off by default unless we detect existing repos on the first start)

Files Version

v2.4.82

Windows Version

Windows 11

Comments

No response

yaira2 avatar May 24 '23 15:05 yaira2

I'll work on this

hecksmosis avatar May 29 '23 17:05 hecksmosis

Thanks!

yaira2 avatar Jun 08 '23 01:06 yaira2

We're moving this back to the planning stage to reevaluate if we still want to implement this.

yaira2 avatar Jul 17 '23 23:07 yaira2

I like this idea. If user added a repo to the favorites, we could separate favorite repos to git section.

0x5bfa avatar Feb 09 '24 08:02 0x5bfa

The original idea was to automatically detect repos on the device, but after giving it some thought it doesn't really seem like a good idea. A different approach is to detect repos via the logged in GitHub account, but that's a bit too niche for us to consider right now.

yaira2 avatar Feb 09 '24 15:02 yaira2

That's true.

0x5bfa avatar Feb 09 '24 15:02 0x5bfa

  • Users should be able to set a custom limit for the number of repositories visible in the side panel. Screenshot 2024-05-11 074542
  • There should be dedicated options to open a repository's folder in VS Code, and the terminal, similar to the cut, copy, and paste buttons in the file explorer. Screenshot 2024-05-11 094404
  • Users should have the ability to change the location of each repository's folder.

Reference: #15367

DhananjayPorwal avatar May 11 '24 04:05 DhananjayPorwal

@yaira2 We’re making a Integrations settings page(at least similar one). Why not use it for this, having Source Control settings section and let user Browse source folder limitlessly. But speaking of showing them, we can also have a setting of maximum repos to show in the settings section there. What do you think?

0x5bfa avatar May 16 '24 05:05 0x5bfa

@yaira2 We’re making a Integrations settings page(at least similar one). Why not use it for this, having Source Control settings section and let user Browse source folder limitlessly. But speaking of showing them, we can also have a setting of maximum repos to show in the settings section there. What do you think?

Do you mean for users to manually select repos to show? It's not as convenient as automatically detecting them, but it's more practical.

yaira2 avatar May 16 '24 14:05 yaira2

@yaira2

  • There should be dedicated options to open a repository's folder in VS Code, and the terminal, similar to the cut, copy, and paste buttons in the file explorer.

What do you think about this? Implementing this is straightforward and highly beneficial.

DhananjayPorwal avatar May 16 '24 15:05 DhananjayPorwal

There should be dedicated options to open a repository's folder in VS Code

There is already an option on the status bar, and we're working on support for extending this feature to include other programs and IDEs.

yaira2 avatar May 16 '24 16:05 yaira2

But there is no option to open terminal in the git folder... image

DhananjayPorwal avatar May 16 '24 16:05 DhananjayPorwal

We're working on this from several directions

  1. Windows Terminal uses the new shell extension format which isn't supported in Files just yet #8251
  2. We're working on adding support for Terminal in the "Open" flyout on the Status Bar
  3. We're working on opening Terminal as a pane within Files
  4. There are keyboard shortcuts:
  • "ctrl + `" opens Terminal
  • "ctrl + shift + `" opens Terminal as admin

yaira2 avatar May 16 '24 16:05 yaira2