Skip to content

新增按下 I/i 来切换隐藏文件夹显示功能#1

Merged
harkerhand merged 2 commits intomasterfrom
feat/hide
Mar 13, 2026
Merged

新增按下 I/i 来切换隐藏文件夹显示功能#1
harkerhand merged 2 commits intomasterfrom
feat/hide

Conversation

@harkerhand
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings March 13, 2026 07:31
@harkerhand harkerhand merged commit 90f8bf3 into master Mar 13, 2026
6 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

该 PR 为 TUI 目录导航新增“按下 I/i 切换隐藏目录显示”的能力,并在底部新增状态/提示栏展示当前隐藏目录显示状态;同时扩展部分按键支持大写输入,并调整 README 的下载链接指向 latest release。

Changes:

  • App 中引入 show_hidden 状态并通过 toggle_hidden() 触发重新加载目录,按需过滤以 . 开头的隐藏目录
  • 在事件循环中新增 I/i 快捷键触发隐藏目录切换,并让 Q/H/J/K/L 等大写按键与小写等效
  • UI 底部增加提示栏;README 下载示例改用 releases/latest

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/app.rs 增加 show_hidden 状态、在读取目录时按开关过滤隐藏目录,并提供 toggle_hidden()
src/main.rs 增加 I/i 切换隐藏目录;扩展退出/移动按键支持大写
src/ui.rs 增加底部状态提示栏,展示隐藏目录开关状态与快捷键提示
README.md 下载链接改为 latest;(目前未同步新增快捷键说明)
README_EN.md 下载链接改为 latest;(目前未同步新增快捷键说明)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 27 to 35
# Linux
wget https://github.com/harkerhand/jumping/releases/download/v0.1.0/jumping-linux
wget https://github.com/harkerhand/jumping/releases/latest/download/jumping-linux
chmod +x jumping-linux
sudo mv jumping-linux /usr/local/bin/jumping

# macOS
wget https://github.com/harkerhand/jumping/releases/download/v0.1.0/jumping-macos
wget https://github.com/harkerhand/jumping/releases/latest/download/jumping-macos
chmod +x jumping-macos
sudo mv jumping-macos /usr/local/bin/jumping
Comment on lines 29 to 37
# Linux
wget https://github.com/harkerhand/jumping/releases/download/v0.1.0/jumping-linux
wget https://github.com/harkerhand/jumping/releases/latest/download/jumping-linux
chmod +x jumping-linux
sudo mv jumping-linux /usr/local/bin/jumping

# macOS
wget https://github.com/harkerhand/jumping/releases/download/v0.1.0/jumping-macos
wget https://github.com/harkerhand/jumping/releases/latest/download/jumping-macos
chmod +x jumping-macos
sudo mv jumping-macos /usr/local/bin/jumping
f.render_widget(right_list, chunks[2]);

let status = if app.show_hidden { "SHOW" } else { "HIDDEN" };
let hint_text = format!("I/i: TOGGLE HIDDEN FOLDER (CURRENT: {}) | Q/q: QUIT", status);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants