Repository navigation
feat(panels): 文件改为新标签页打开,终端字号/字体可独立调节 - #11
Merged
Merged
Conversation
点击目录树里的文件不再从下方顶开预览区,改为在面板标签栏新增一个 文件标签,内容整页展示(一级标签,无嵌套)。 - 面板新增 'file' 标签类型:一个文件一个标签,标签 id 含面板位置 / 服务器 / 工作区 / 路径,同一文件重复点击只切回来 - 文件内容从 FileExplorer 拆到独立的 FileViewer;预览状态(加载 / 保存事务 / 外部改动检测)从 useFileExplorer 拆到 useFilePreview - 关掉文件标签回到打开它的那一页(目录树 / 变更面板);有未保存改动 时仍然先弹 diff 确认,标签上带脏标记 - useAutoRefresh 增加 skipRefreshOnFileChange:文件预览只关心自己那 一个文件,别人的文件变了不重读
设置 → 工作区 → 终端 新增「终端字号」「终端字体」,改完立刻作用到 已打开的终端:xterm 运行时改 fontSize / fontFamily,重新 fit 算行列数 并把新尺寸同步给服务端(否则 TUI 排版错位)。 - 终端字号不再跟着「代码字号」一起变,两者解耦 - 字体留空时跟随主题 --font-mono;填字体名时自动补通用等宽兜底, 字体没装也不会回落到比例字体 - 移除已无人使用的 --fs-terminal / --fs-terminal-line-height - RangeSlider 抽到 SettingsUI 复用(外观页的字号滑块也改用它)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
两个诉求:
改动
1. 文件改为在面板标签栏开新标签页(
965d35a1)'file'标签类型:一个文件一个标签,内容整页展示(一级标签,无嵌套)FileExplorer拆到独立的FileViewer;文件状态(加载 / 保存事务 / 外部改动检测)从useFileExplorer拆到useFilePreview,目录树只管目录树useAutoRefresh增加skipRefreshOnFileChange:文件预览只关心自己那一个文件,别人的文件变了不重读2. 终端字号与字体可独立调节(
8a460855)(xterm 运行时改
fontSize/fontFamily→ 重新 fit 算行列数 → 把新尺寸同步给服务端,TUI 排版不错位)--font-mono,填字体名时自动补通用等宽兜底--fs-terminal/--fs-terminal-line-heightRangeSlider抽到SettingsUI复用(外观页的字号滑块也改用它)验证
tsc -b干净、eslint 0 error、1413 个测试全过合并说明
基于
f311cc88,可 fast-forward 合入main,无冲突。