Skip to content

Offer autocomplete and sort alphabetically for Netlify Link command #496

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

Closed
swyxio opened this issue Aug 31, 2019 · 4 comments
Closed

Offer autocomplete and sort alphabetically for Netlify Link command #496

swyxio opened this issue Aug 31, 2019 · 4 comments
Labels
area: command: link good first issue type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@swyxio
Copy link
Contributor

swyxio commented Aug 31, 2019

- Do you want to request a feature or report a bug?
feature

- What is the current behavior?

currently when you netlify link and pick from your list of sites, you have to scroll through ALLLLLLL your sites to find the site you want, and it is sorted by creation order not alphabetically

- What is the expected behavior?

show most recent 5, but also sort sites alphabetically, and also offer autocomplete

the relevant code to edit is here https://github.com/netlify/cli/blob/58ec7f07adb03821724da45c15dec42b9b23d1eb/src/utils/link/link-by-prompt.js#L93-98

@verythorough
Copy link
Contributor

It doesn't quite have autocomplete, but v2.11.23 had the ability to search by partial site name. It was lost when the "choose from a list" option was introduced in #335.

If running v2.11.13, choose the "site name" option for netlify link, then type a partial site name and hit enter. You'll get a list of matches to select from — just like the Netlify UI, actually. Unfortunately, the prompt didn't really indicate that it was a search or that you could type a partial name, so I don't think people realized this was possible.

@verythorough
Copy link
Contributor

verythorough commented Sep 2, 2019

@sw-yx, I created #502 to bring back (and more clearly explain) the "search by site name" option, if you're curious.

@swyxio
Copy link
Contributor Author

swyxio commented Sep 2, 2019

i saw. v nice!

@erezrokah erezrokah added area: command: link type: feature code contributing to the implementation of a feature and/or user facing functionality good first issue labels May 6, 2021
@sarahetter
Copy link
Contributor

Closing as stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: command: link good first issue type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

4 participants