添加注册uri的功能#366
Merged
2-2-3-trimethylpentane merged 1 commit intoInkCanvasForClass:betafrom Feb 4, 2026
Hidden character warning
The head ref may contain hidden characters: "feat--\u5141\u8bb8\u7b2c\u4e09\u65b9\u7a0b\u5e8f\u901a\u8fc7\u7cfb\u7edfURI\u6765\u63a7\u5236\u90e8\u5206\u529f\u80fd"
Merged
Conversation
696ed84
into
InkCanvasForClass:beta
5 checks passed
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.
摘要 (Summary)
本项目引入了自定义外部协议 icc:// 支持,允许其他程序(如自定义侧边栏、网页或快捷方式)通过 URI 远程控制 Ink
Canvas。通过此功能,用户可以快速切换收纳状态或调用侧边栏工具(点名、计时器、白板等)。
主要改动 (Key Changes)
Helpers/UriSchemeHelper.cs: 负责处理系统注册表的写入与注销。采用 HKEY_CURRENT_USER 路径,无需管理员权限即可启用。MainWindow_cs/MW_UriHandler.cs: 实现了 HandleUriCommand 方法,解析传入的 URI 路径。IPC(基于系统事件和临时文件)将指令发送给已有的单实例处理,避免重复启动。
ThoroughlyHideWhenFolded: 这是一个专为解决界面冲突设计的隐藏功能。Docs/ExternalProtocol.md: 详细记录了所有可用指令、调用方式及开发者说明。测试用例 (Test Cases)
其实就是为了让我的 PANDAJSR/sidebar-for-class 能够方便的调用 ICC-CE 中的功能