Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: (gitbrowse) set a default remote #992

Open
1 task done
ahmedelgabri opened this issue Feb 7, 2025 · 0 comments
Open
1 task done

feature: (gitbrowse) set a default remote #992

ahmedelgabri opened this issue Feb 7, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@ahmedelgabri
Copy link
Contributor

Did you check the docs?

  • I have read all the snacks.nvim docs

Is your feature request related to a problem? Please describe.

I work in some repos with multiple remotes, and triggering Snacks.gitbrowse.open() always shows the picker to choose which origin to use.

I only care about origin 99.9% of the time.

Describe the solution you'd like

  • Set snacks.gitbrowse.Fields.remote to origin by default and allow it to be overridden
  • Or snacks.gitbrowse.Fields.remote to nil by default (to maintain current behavior) and allow it to be overridden

Describe alternatives you've considered

Getting rid of the remotes is not an option and I don't think there is a way around this in the current state?

Additional context

No response

@ahmedelgabri ahmedelgabri added the enhancement New feature or request label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant