Open meezwhite opened 4 months ago
Thanks @meezwhite for the suggestion.
There are two ways you can 'search' for Reference entries, one is the top Global search bar as you mentioned in this issue, another is ‘Filter by keyword’. When you type in the ‘Filter by keyword’ field, the reference entries will be automatically filtered without pressing 'enter', as shown in the screenshots below.
The reason we do not include a drop-down for Global Search is to minimize page load size for accessibility concerns. If you find the 'Filter by keyword' field on 'Reference' page hard to locate, we can explore different design options. Please let us know what you think. Thanks!
Thank you @Qianqianye, for pointing me towards the "Filter by Keyword" field. The field definitely makes things easier!
I've tested the interactions needed to find specific functions or variables on both the old versus the new site. Here are my findings.
Use Case | Old Reference Page | New Reference Page |
---|---|---|
Find "loadPixels" |
|
|
Find "loadJSON" |
|
|
Find "frameCount" |
|
|
Find "noLoop" |
|
|
Observations:
The reason we do not include a drop-down for Global Search is to minimize page load size for accessibility concerns.
I don't see page load as an issue on the reference page, because the function names are already delivered to make the "Filter by Keyword" field functionality possible. If we were to add a dropdown, I would suggestion only adding it for the reference page.
Some suggestions for solving the issue, where the function one is looking for might not be displayed at the top of the results list (Observation 3):
In any case, allowing users to navigate the site using the "Tab" key, which would make finding a function a lot easier. (This could be a separate feature request.)
I still see some benefits with the dropdown from the old reference page, but it isn't the only way to improve quicker find-ability of functions on the new reference page.
Increasing Access
Unsure
Most appropriate sub-area of p5.js?
Reference
Feature request details
On the old site, I found it extremely useful to have a suggestions dropdown when searching for the reference page of a specific object or function.
Currently, when I type in the search field, I don't get suggestions for the function I'm looking for. I have to enter my search keyword, press Enter, and then check if the function I'm looking for even exists. (Currently, it's additionally hard to find the exact reference page using the search field, since not all expected results are shown, as mentioned in #458)