新增: 会话分叉功能,优化增量扫描缓存

- 会话分叉: 按 c 键从历史会话分叉,支持带方向提示
- 启动自动加载历史记录
- 增量扫描: 缓存内存化、目录 modTime 跳过、已删除条目裁剪
- 刷新按钮复用 onTabSwitch 单一入口
This commit is contained in:
2026-05-31 21:40:20 +08:00
parent 0bd9848df9
commit 36aeef4bb7
10 changed files with 1327 additions and 1228 deletions

View File

@@ -7,7 +7,6 @@ import (
"io"
"net/http"
"os"
"runtime"
"strings"
"time"
@@ -15,7 +14,7 @@ import (
)
// Version 当前版本,发布时更新
const Version = "0.1.1"
const Version = "0.2.0"
// --- 远程 JSON 结构 ---
@@ -103,7 +102,7 @@ func CheckUpdateCmd() tea.Cmd {
}
// 查找当前平台的下载信息
platformKey := runtime.GOOS + "-" + runtime.GOARCH
platformKey := platformKey
pi, ok := info.Platforms[platformKey]
if !ok {
return nil
@@ -192,7 +191,7 @@ func SelfUpdateCmd(downloadURL, expectedSHA256, newVersion string) tea.Cmd {
}
// Linux/macOS: 设置可执行权限
if runtime.GOOS != "windows" {
if !isWindows {
os.Chmod(exePath, 0755)
}