Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议增加代码复制功能 #913

Open
xiaonet opened this issue Dec 8, 2023 · 8 comments
Open

建议增加代码复制功能 #913

xiaonet opened this issue Dec 8, 2023 · 8 comments

Comments

@xiaonet
Copy link

xiaonet commented Dec 8, 2023

请按照一下格式提交issue,谢谢!

  1. 你当前使用的是哪个版本的 MinDoc(godoc_linux_amd64 version)? 2.1

  2. 你当前使用的是什么操作系统? rockylinux

  3. 你是如何操作的?大量代码的时候逐行拖动复制

  4. 你期望得到什么结果? 添加一个一键复制的功能

  5. 当前遇到的是什么结果? 没有这个功能,代码较长的时候复制麻烦

@JamesYuCN
Copy link

鼠标移动到代码区域,鼠标放上去,代码区右上角会有”复制“按钮,点击即可复制。
但是,最新版因为css的问题,这个样式经常丢失(被覆盖),所以看不到,可以尝试按ctrl+F5 刷新。
(刷新后再点击左侧目录树样式又会丢失)

@xiaonet
Copy link
Author

xiaonet commented Dec 21, 2023

没有复制这两个字用不了。

@jh244212647
Copy link
Contributor

image
image
使用最新master分支,cherry和普通markdown编辑器复制功能都是可用的 @JamesYuCN 被覆盖是啥情况,可以截图一下?

@JamesYuCN
Copy link

image image 使用最新master分支,cherry和普通markdown编辑器复制功能都是可用的 @JamesYuCN 被覆盖是啥情况,可以截图一下?

原图,可以复制:
image

点击目录,样式就变了
image

@jh244212647
Copy link
Contributor

有改过什么配置么,我这里没改过配置,不复现这个问题

@JamesYuCN
Copy link

因为显示不对,我自己改了下面两个文件,但是也还是出现上面的问题, 等我有空了用最新版本试试,之前应该是 2.2bate1

image

@JamesYuCN
Copy link

有改过什么配置么,我这里没改过配置,不复现这个问题

应该是和这个一样的问题:
#902

@jh244212647
Copy link
Contributor

和902的问题应该还不太一样,902的问题是目录树渲染的慢,你这个问题目录树已经渲染好了,但是代码块渲染看起来没生效,你可以先更新到master最新版本,然后恢复一下配置看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants