googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.12k stars 695 forks source link

Request: Remember last-chosen GitHub repo in "Save a copy to Github" #1583

Open rococode opened 3 years ago

rococode commented 3 years ago

Currently, when you save a Colab notebook to GitHub the repo dropdown is freshly populated every time. As a result, it always displays the first repo in the entire list as the default option. This means that users must manually open the dropdown and find the correct repo (and/or branch) to save the notebook to.

This causes two issues:

  1. It's easy for someone to save a copy of a notebook to the wrong repo if they forget to select one manually.

  2. It is mildly inconvenient to have to spend time finding the right repo every time you want to save a copy to GitHub. This is especially true if the user has a lot of repos or branches, as it can take a few seconds to find the right one in that case.

It would be a nice QoL improvement to have Colab remember the last repo that was selected. A naive implementation could be as simple as a cookie that's checked against the list of repos to set a default selection for the dropdown.

This way, storing a copy on GitHub (which can happen quite frequently if you're treating it just like a commit in a regular workflow) would be as quick and simple as File -> Save a copy to GitHub -> OK, without the extra hassle of clicking through two dropdowns for repo and branch every time.

Edit: Editing to note that since I posted this I've accidentally pushed to a personal repo instead of an org's repo more than once, oops...

increpare commented 3 years ago

I have about 200 repos; it's quite a drag to scroll through. Automatically remembering the repo location would be nice.

algodigger commented 3 months ago

Almost 4 years after this is still a big inconvenience,

cperry-goog commented 3 months ago

Sorry, thanks for pinging this again.