jesseduffield / jesseduffield/lazygit

Automatically select the only remote when switching to Remotes for a repo with a single remote

Open
#2,924 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Is your feature request related to a problem? Please describe.**
Most repos I work with only have a single remote. When I switch to the Remotes tab I have to manually hit Enter to view the branches on that remote.

**Describe the solution you'd like**
This feels like it could be lazier 😉️; if the repo only has one remote the remote branches could be automatically shown when switching to the Remotes tab. Perhaps the tab should have the same name as the title of the pane when the remote is opened, e.g. "Local branches - Remote branches (origin) - Tags".

**Describe alternatives you've considered**
An alternative could be to have a lazygit option that would instead display a tab for each remote, e.g. for a repo with two remotes, `origin` and `backup` the tabs for pane could be "Local branches - origin branches - backup branches - Tags".

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.