Repository navigation
Conversation
- 连接行右键菜单新增「复制 IP/域名」:复制配置里的主机(去首尾空白,不带端口与用户名);没填主机的连接不显示。 - 连接表单 Host 栏写成 192.168.1.1:22 / example.com:2222 / [v6]:port 时,失焦把端口挪进 Port 栏;保存时兜底同样拆开。 裸 IPv6、串口设备名、文件路径、URL 与越界端口原样不动,Port 栏收起的协议不拆。 - 五份 resx 新增 Tree_CopyHost;manual 中英两份、plan.md §339 同步;补充对应单元测试。
joesdu
added a commit
to VelaShell/velashell-docs
that referenced
this pull request
Nov 18, 2026
- 资源管理器右键菜单:「复制会话 / 复制地址」改为已实现的「复制连接 / 复制 IP/域名」,写明复制范围与不显示的条件。 - 连接表单 Host 栏:新增「Host 栏带端口」一条,失焦拆进 Port 栏、保存兜底,以及不拆的几种写法。 - 中英两份同步。对应宿主 joesdu/VelaShell#779。
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.
主要改动
资源管理器右键「复制 IP/域名」
SessionTreeNodeViewModel.HasHost)。SessionTreeViewModel.CopyToClipboard回调由视图挂上,与文件栏等处同一写法。连接表单主机栏自动拆出端口
192.168.1.1:22、example.com:2222或[2001:db8::1]:2222时,失焦即把端口填进 Port 栏、Host 栏只留 IP 或域名(ConnectionProfileViewModel.SplitPortFromHost)。host:2就被拆走;没失焦直接保存时EffectiveEndpoint兜底同样拆开(此前只认 [Feature] 希望增加ipv6支持 #611 的方括号写法)。HostAddress.TrySplit:只认「一个冒号 + 1–65535」。裸 IPv6、串口设备名、SQLite 文件路径、插件 URL 与越界端口原样不动;Port 栏收起的协议不拆。其它
Tree_CopyHost。plan.md新增 §339。文档
涉及文档修改:
manual.md/manual.en.md:资源管理器右键菜单与连接目标两段补充。验证
dotnet build tests/VelaShell.Tests -c Debug:通过。VelaShell.Tests全量 3563 项:3510 通过、53 跳过(Docker 等环境类集成用例早退)、0 失败。SessionTreeViewModelTests2 条、ConnectionProfileViewModelTests9 组(含SplitPortFromHost八种写法)。