RFE: keyboard shortcut to redisplay search results
还没有人认领这个 Issue。
评估
调研方向
该 issue 未指出源文件、测试或入口点;请先定位侧边栏、搜索结果和键盘快捷键的处理逻辑。当专用快捷键能够在不改变现有搜索结果的情况下恢复它们(包括结果已经消失时),并且该行为有验证覆盖时,工作即完成。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Ruby
- 星标
- 39.5k
- 派生
- 2.6k
- 平均合并
- 2 天 9 小时
- 30 天内合并 PR
- 13
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
freeCodeCamp/devdocs 的其他 Issue
-
docs/improvement
难度 2/5 1-3 小时 新手友好度 62/100
freeCodeCamp/devdocs#1989 · 4 条评论 · 4 个 reaction ·
-
难度 5/5 一周以上 新手友好度 20/100
freeCodeCamp/devdocs#2731 ·
-
feature
难度 5/5 一周以上 新手友好度 25/100
freeCodeCamp/devdocs#2712 ·
-
feature
难度 5/5 一周以上 新手友好度 30/100
freeCodeCamp/devdocs#2683 · 1 条评论 ·
-
feature
难度 4/5 3-5 天 新手友好度 45/100
freeCodeCamp/devdocs#2673 ·
查看 freeCodeCamp/devdocs 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
riscv/riscv-unified-db#2626 ·
-
Component: GLib
难度 2/5 1-3 小时 新手友好度 70/100
-
ds-drift
难度 2/5 1-3 小时 新手友好度 70/100
we-promise/sure#3693 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
simp/pupmod-simp-simp#395 ·