norwegianblue icon indicating copy to clipboard operation
norwegianblue copied to clipboard

Feature request: Autocomplete after the eol command

Open adriens opened this issue 2 years ago • 6 comments

:grey_question: About

While typing eol+TAB it would be very cool to get the existsing products instead of eol | grep X

:ticket: Related content

  • https://github.com/charmbracelet/gum/issues/267
  • https://github.com/hugovk/norwegianblue/pull/132

adriens avatar Jan 20 '23 22:01 adriens

To do this, whatever controls the tab completion would need to first make an HTTP request first to the https://endoflife.date/docs/api to fetch the list of products. The response could then be cached for a day like we're doing for the usual product EOL responses.

hugovk avatar Jan 21 '23 12:01 hugovk

Yup, that's the idea :+1:

adriens avatar Jan 22 '23 03:01 adriens

with this endpoint : https://endoflife.date/api/all.json

adriens avatar Jan 22 '23 03:01 adriens

Hi guys, any chance to get this feature :grey_question: :pray:

adriens avatar Feb 02 '23 20:02 adriens

I've never had much luck with autocomplete libraries, but would review a PR for this.

hugovk avatar Feb 02 '23 20:02 hugovk

:ok_hand:

adriens avatar Feb 02 '23 21:02 adriens