freeCodeCamp / freeCodeCamp/devdocs

RFE: keyboard shortcut to redisplay search results

Ouverte
#2,324 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
feature
Langage dominant
Ruby
Étoiles
39.5k
Forks
2.6k
Merge moyen
4 j 32 min
PR mergées (30 j)
13

Description

# Feature request

### Motivation

When the option to "Automatically hide and show the sidebar" is selected, navigating to a search result closes the sidebar. However, sometimes there are multiple search results and the one you pick first turns out to be not what you need, but by then the sidebar is already hidden and you don't see the rest of the search results.

It is possible to redisplay the search results by typing something else or using Alt + / , but that's unintuitive/inconvenient because it resets search results and/or clobbers the cursor position.

### Summary

This RFE is to add a dedicated keyboard shortcut (for example, Alt + /) to refocus the sidebar and redisplay search results, without changing them in any way.

Sometimes the search results disappear completely (such that the Alt + / workaround does not help). This shortcut should be able to refresh the search in this case.

This request is similar to #657, but for a keyboard shortcut rather than mouse gesture.

---

There are also apparent inconsistencies in how / is handled (it's not really useful most of the time because in normal usage the search bar does not seem to lose the focus at all, so blindly typing / after navigating to a search result tends to just insert a stray literal `/` into the search box). Perhaps this could be changed and then `/` would serve as the shortcut for this RFE?

### Examples

N/A

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.