Giter VIP home page Giter VIP logo

Comments (8)

allrobot avatar allrobot commented on June 7, 2024

当粘贴剪切板列表的siyuan的内嵌代码,无法正常粘贴为内嵌代码

SiYuan_nERuGPYqtR

unicode和RTF不一致

pycharm64_VbhQkbZ9am

from siyuan.

88250 avatar 88250 commented on June 7, 2024

Win+V 我这里测试正常:

issue.webm

unicode和RTF不一致

这个问题没看懂,麻烦再描述一下。

from siyuan.

allrobot avatar allrobot commented on June 7, 2024

unicode和RTF不一致

#11281 (comment) 讲过了吧,剪切板富文本和纯文本内容不一致

siyuan复制内嵌代码,实际上复制`xxx`纯文本,富文本为:<p id="20240514061411-uim5foo" updated="20240514061411"><span data-type="code" >xxx</span>​</p>

粘贴win+v的旧剪切板内容,实际粘贴的是富文本而不是纯文本

注意,是旧的剪切板,不是最新的剪切板内容
image

如果粘贴最新的剪切板内容,粘贴的是纯文本的剪切板内容

windows 剪切板有很多格式……

😂😂😂

Other:
思源好像不支持`` `xxx` ``显示成`xxx`的样式

把`` `xxx` ``粘贴到思源,没反应,只能粘贴为转义

from siyuan.

88250 avatar 88250 commented on June 7, 2024

粘贴win+v的旧剪切板内容,实际粘贴的是富文本而不是纯文本

思源在处理粘贴时优先使用富文本。如果你要从 IDE 里复制纯文本,应该用这个:

image

思源好像不支持 `xxx` 显示成xxx的样式

是的,不支持。

from siyuan.

allrobot avatar allrobot commented on June 7, 2024

粘贴win+v的旧剪切板内容,实际粘贴的是富文本而不是纯文本

思源在处理粘贴时优先使用富文本。

为啥最新的剪切板粘贴是纯文本,旧剪切板内容就读取富文本?

如果你要从 IDE 里复制纯文本,应该用这个:

我是知道的

win10最新剪切板能正常粘贴为纯文本,如果从剪切板选择旧剪切板内容,无法选择粘贴为纯文本

要粘贴为纯文本,必须先粘贴旧内容,先撤销刚才的操作,此时剪切板最新内容已经成刚才粘贴的旧内容了,再点右键菜单的纯文本选项或ctrl+win+v(PowerToys支持)就能粘贴为`XX`

你觉得符合用户的操作习惯嘛?

from siyuan.

88250 avatar 88250 commented on June 7, 2024

我调试了下,通过 Win+V 发送最新的条目可以读取到 text/siyuan:

image

但是发送旧的读取不到:

image

这个情况下会走 text/html 转换 md,span 就被转换为普通文本了,这里可以改进一下,感谢反馈。

from siyuan.

allrobot avatar allrobot commented on June 7, 2024

https://github.com/pyload/pyload

chrome_o0xv3jfRRP

from siyuan.

TCOTC avatar TCOTC commented on June 7, 2024

@allrobot #11485

from siyuan.

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.