Code Monkey home page Code Monkey logo

Comments (9)

sanchuanhehe avatar sanchuanhehe commented on September 17, 2024

预览模式bug主要体现在涉及到行间公式敲英文括号时会卡住,然后键盘无响应,需要鼠标切换到其他地方

from typora-copilot.

Snowflyt avatar Snowflyt commented on September 17, 2024

公式编辑时有bug,有时在源代码模式下编辑公式(行间)会自动补全(没按tab),预览模式下有时会出现错误的补全(具体现象有点怪,之后补充),感谢大佬

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

from typora-copilot.

Snowflyt avatar Snowflyt commented on September 17, 2024

预览模式bug主要体现在涉及到行间公式敲英文括号时会卡住,然后键盘无响应,需要鼠标切换到其他地方

这个有示例可以截图说明吗?我无法复现这个问题

from typora-copilot.

sanchuanhehe avatar sanchuanhehe commented on September 17, 2024

公式编辑时有bug,有时在源代码模式下编辑公式(行间)会自动补全(没按tab),预览模式下有时会出现错误的补全(具体现象有点怪,之后补充),感谢大佬

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

没事的,现在并不影响使用,复现等一小会,在上课😋

from typora-copilot.

sanchuanhehe avatar sanchuanhehe commented on September 17, 2024

屏幕截图 2024-03-22 123959
image

from typora-copilot.

sanchuanhehe avatar sanchuanhehe commented on September 17, 2024

公式编辑时有bug,有时在源代码模式下编辑公式(行间)会自动补全(没按tab),预览模式下有时会出现错误的补全(具体现象有点怪,之后补充),感谢大佬

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

每次删除时更容易在源代码下自动补全,是不是没有做这个逻辑检查(delete)

from typora-copilot.

sanchuanhehe avatar sanchuanhehe commented on September 17, 2024

image
大括号也有同样的错误

from typora-copilot.

sanchuanhehe avatar sanchuanhehe commented on September 17, 2024

就在这里卡住了,然后对于键盘行为无响应

from typora-copilot.

sanchuanhehe avatar sanchuanhehe commented on September 17, 2024

我是学通信的,虽然对这些很感兴趣,但是前端帮不上什么忙😂,感谢大佬

from typora-copilot.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.