freeCodeCamp / freeCodeCamp/devdocs

RFE: keyboard shortcut to redisplay search results

未关闭
#2,324 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
feature
主要语言
Ruby
星标
39.5k
派生
2.6k
平均合并
4 天 32 分钟
30 天内合并 PR
13

描述

# 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

贡献指南

打开贡献指南

调研方向

该 issue 未指出源文件、测试或入口点;请先定位侧边栏、搜索结果和键盘快捷键的处理逻辑。当专用快捷键能够在不改变现有搜索结果的情况下恢复它们(包括结果已经消失时),并且该行为有验证覆盖时,工作即完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
ruby
领域
frontend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。