Giter Site home page Giter Site logo

Comments (10)

loubth avatar loubth commented on July 17, 2024 1

作者你好,新版的已试用,发现一个bug就是只读模式下选中图片后乱按几下backspace还是可以删除图片

from typora_plugin.

obgnail avatar obgnail commented on July 17, 2024

@loubth 感谢反馈。

1.0.3 版本里两个问题都已经修复。你可以用用看,有问题麻烦帮忙反馈一下。

from typora_plugin.

loubth avatar loubth commented on July 17, 2024

感谢作者大佬,上面提的bug经过验证已经改好了。发现一个新的bug,当在只读模式下在代码块区域输入若干中文此时确实没有显示,但是保持焦点不动切换为可编辑模式时,这些在只读模式下键入的中文就会全部出现在代码块区域

from typora_plugin.

obgnail avatar obgnail commented on July 17, 2024

@loubth 感谢反馈。真的不好意思。用的很细 👍

不负责任的讲,read_only 是 bug 最多的功能了。这个功能也是我的痛点,是我绞尽脑汁逆天而行,强行实现的。

我要吐了😢 我无法监控输入法啊😭 我现在的实现大概率方向不对,我看明天能不能重构一下。

from typora_plugin.

loubth avatar loubth commented on July 17, 2024

发现个新bug,就是只读模式下,页内搜索和全局搜索框都不能进行增删了

from typora_plugin.

loubth avatar loubth commented on July 17, 2024

大佬只读模式下 上下左右还有Home End PageUp PageDown等快捷键在失焦后都不能用了

from typora_plugin.

obgnail avatar obgnail commented on July 17, 2024

@loubth

你好,不好意思,现在才回复。

我在 1.1.5 版本做了些许修复,有兴趣可以试用看看:

  • 【在只读模式下键入的中文就会全部出现在代码块区域】:已修复。
  • 【页内搜索和全局搜索框都不能进行增删了】:已修复。
  • 【上下左右还有 Home End PageUp PageDown 等快捷键】:未修复

正如你说的那样,我实现只读模式的方式,其实就是让 focus 的标签全部失焦,也就是没有光标。
而上下左右按键本质是控制光标,因为你无法操作不存在的东西,进而快捷键失效。

我后续再想想办法吧。:(

from typora_plugin.

loubth avatar loubth commented on July 17, 2024

作者大佬你好,修复的bug已验证

  • 【在只读模式下键入的中文就会全部出现在代码块区域】:已验证。
  • 【页内搜索和全局搜索框都不能进行增删了】:已验证。

如果有办法支持 Home End PageUp PageDown 等快捷键,做到像一个pdf阅读器一样的效果那将完美。:)

from typora_plugin.

obgnail avatar obgnail commented on July 17, 2024

@loubth 你好。

1.2.2 版本发布了。

对 read_only 做了一版修复,提高了效率而且理论上应该支持所有快捷键了。

有兴趣可以试用。

注:1.2.0 版本重构了,可能有些许 BUG,如果你发现了,麻烦提醒我。

from typora_plugin.

obgnail avatar obgnail commented on July 17, 2024

@loubth 太强了,用的很细 👍

1.2.4 版本已修复。这种情况应该不会再反复了。

原因:space、delete、backsapce、enter 在 Typora 的优先级比较高,绕过了 File.Lock 的限制。我现在学聪明了,在 read_only 模式下直接阻拦这四个按键。

from typora_plugin.

Related Issues (20)

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.