Ge Gao

Results 26 comments of Ge Gao

@obgnail 我试了下,Typora for Mac 似乎没有办法直接访问 Node API,它甚至有可能不基于 Node. Typora 官方仅提到了 Linux / Windows 版本基于 Electron,而未明确提及 Typora for Mac 使用的技术。在 Typora for Mac 的 Developer Tool 终端里,`File.isNode` 的值是 `false`, `process` 也不存在,即使通过...

提供一个思路,macOS 下暴露了一个全局函数 `bridge.callHandler`,在 macOS 下 Typora 的大部分操作都是通过它进行的。其中 `"controller.runCommand"` 可以用于调用 Shell. ```javascript /** * 运行 Shell 命令(仅在 macOS 下有效) */ const runShellCommand = (command, options) => { const { cwd }...

> 公式编辑时有bug,有时在源代码模式下编辑公式(行间)会自动补全(没按tab),预览模式下有时会出现错误的补全(具体现象有点怪,之后补充),感谢大佬 这个可能不只是限于公式编辑的 BUG,目前源码模式在边界情况下确实会神秘触发自动补全。主要 Typora 源码模式用的 CodeMirror 实现,它原生不支持 GitHub Copilot 这种灰色字符提示,我用了一些非常 Hacking 的方式去实现它,实际上就是先插入补全的文本然后将其设置为灰色,并检查用户之后是否有移动光标、键入字符等操作,如果有则撤销😂。这个实现方式很明显会有很多不可知的 BUG,我会尽量在代码实现里加更多判断逻辑减少 BUG,但别抱太大期待

> 预览模式bug主要体现在涉及到行间公式敲英文括号时会卡住,然后键盘无响应,需要鼠标切换到其他地方 这个有示例可以截图说明吗?我无法复现这个问题

This is a great idea and should be relatively easy to implement. I think I'll include it in the next release.

Supported in 9cfabe94fc3e7b6b614eb7c198c86d66065a741a. It is already included in the newest v0.3.0 version.

没用过这个软件。按理来说 Typora Copilot 只是个插件,安装它本身不会造成任何其他影响。安装过程本身也就是把插件下载到指定文件夹然后改一下 Typora 源码。 我不认为安装插件本身会造成与其他软件的兼容性问题,有更多信息可以提供吗?你是怎么安装的插件?

长时间未收到回应,无法复现,关闭该 Issue 希望以后不要再出现这种前因后果说不清楚的 Issue,谢谢

This is a long-term existent problem with the plugin. Typora-copilot currently reads the whole document and ask Copilot for completion, which should lead Typora slow down when your document is...

After an overhaul refactor in v0.3.2 (4140bec), I believe this issue has been significantly alleviated. During the refactor, I discovered several cases where event listeners were not properly removed, leading...