observablehq / feedback

Customer submitted bugs and feature requests
42 stars 3 forks source link

Suggest the Range input snippet in autocomplete when the user types `range` #567

Closed yurivish closed 1 year ago

yurivish commented 1 year ago

Is your feature request related to a problem? Please describe. I frequently create range inputs using the snippet provided in autocomplete, but the option I want is always the second option list and I would prefer it to be the first option.

Describe the solution you'd like

The snippet should appear first in the autocomplete list.

image
mootari commented 1 year ago

If you type "Ran" instead of "ran" the snippet should already appear first in the list.

yurivish commented 1 year ago

It looks like there may be a regression here, as I no longer see the range input in the list of autocomplete options (a few examples are below):

image image
mbostock commented 1 year ago

You’ll get it if you type “slider”, but yea… Ideally it should match both, but it not, we should use the name “Range input” since that’s what Observable Inputs and HTML uses.