snacks.nvim icon indicating copy to clipboard operation
snacks.nvim copied to clipboard

feature: (gitbrowse) set a default remote

Open ahmedelgabri opened this issue 3 weeks ago • 0 comments

Did you check the docs?

  • [x] 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 avatar Feb 07 '25 14:02 ahmedelgabri