Skip to content

fix(terminal): restore multilingual Vim visual copy - #156

Merged
St0ff3l merged 7 commits into
mainfrom
chore/remove-electron-legacy
Jul 29, 2026
Merged

fix(terminal): restore multilingual Vim visual copy#156
St0ff3l merged 7 commits into
mainfrom
chore/remove-electron-legacy

Conversation

@St0ff3l

@St0ff3l St0ff3l commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • restore terminal copy for Vim Visual selections, including xterm mouse-tracking and localized Vim mode labels
  • keep terminal context-menu selection timing correct and remove the right-click focus ring
  • add terminal-only zoom and cross-platform shortcut/gesture handling, plus macOS traffic-light recalibration
  • update the multiplatform desktop skill and release metadata to 2.1.4

Root cause

When Vim enables mouse tracking, xterm.js does not maintain a normal local selection. The renderer now reads Vim's highlighted buffer cells and the active cursor endpoint, while recognizing the official localized Visual/line/block labels from Vim's gettext catalogs. It does not treat arbitrary -- … -- status messages such as Insert mode as Visual.

Validation

  • npm run typecheck -w @fileterm/tauri
  • npm run lint
  • npx prettier --check apps/tauri packages/core packages/shared packages/storage
  • npm run test:tauri (180 unit tests + 19 contract tests)
  • cargo clippy --manifest-path apps/tauri/src-tauri/Cargo.toml --locked --all-targets --all-features -- -D warnings

St0ff3l and others added 6 commits July 29, 2026 09:26
- 删除 apps/electron 目录,运行时不再依赖 Electron 工具链
- 清理 eslint.config.js 中 electron 专用 glob 与规则覆盖
- 清理 .gitignore 中 electron 构建产物忽略项
- 清理 scripts/sync-version-from-root.mjs 中 electron 版本同步分支
- 重建 package-lock.json,npm audit 高危漏洞从 20 降至 6
- 升级 eslint 和 @eslint/js 从 v9 到 v10
- 移除 eslint-plugin-react(上游未声明兼容 ESLint v10)
- 引入 @eslint-react/eslint-plugin 替代 React lint 规则
- 将 eslint.config.js 迁移为 eslint.config.mjs(ESM,@eslint-react 要求)
- 关闭 @eslint-react 新增的严格规则,保持与原 lint 覆盖度一致
- npm audit 高危漏洞从 6 降至 0
6.0.4 版本导致 Tauri 应用窗口启动后长时间黑屏,
回退到 6.0.2 修复启动卡顿问题。
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
@St0ff3l St0ff3l changed the title chore(deps): 移除 Electron 历史代码与构建依赖 fix(terminal): restore multilingual Vim visual copy Jul 29, 2026
Co-authored-by: Codex <codex@openai.com>
@St0ff3l
St0ff3l merged commit 2502bdd into main Jul 29, 2026
8 checks passed
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.

1 participant