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

Add copy code/kbd element item to context menu #9630

Closed
iamqiz opened this issue Nov 11, 2023 · 15 comments
Closed

Add copy code/kbd element item to context menu #9630

iamqiz opened this issue Nov 11, 2023 · 15 comments
Assignees
Milestone

Comments

@iamqiz
Copy link
Contributor

iamqiz commented Nov 11, 2023

In what scenarios do you need this feature?

用于快速复制其内容,但不保留反引号

Describe the optimal solution

1

Describe the candidate solution

No response

Other information

No response

@88250
Copy link
Member

88250 commented Nov 11, 2023

image

@88250 88250 closed this as completed Nov 11, 2023
@iamqiz
Copy link
Contributor Author

iamqiz commented Nov 12, 2023

image

@88250 这个我知道,我是想要"快速复制其内容",手动拖选文字速度慢,且可能会遗漏代码的首尾字符导致命令运行出错.

@88250
Copy link
Member

88250 commented Nov 12, 2023 via email

@iamqiz
Copy link
Contributor Author

iamqiz commented Nov 13, 2023

@88250 你试过吗?双击不行的, 比如 rm -rf

@88250
Copy link
Member

88250 commented Nov 13, 2023 via email

@iamqiz
Copy link
Contributor Author

iamqiz commented Nov 13, 2023

@88250 部分就手动拖选,全部就直接右键行内代码,就像块引用和超链接那样

@88250
Copy link
Member

88250 commented Nov 13, 2023

我们考虑下,谢谢。

@Vanessa219

@Vanessa219
Copy link
Member

感觉没有必要,超链接没有复制功能,引用复制的不是可选中的文本。

@iamqiz
Copy link
Contributor Author

iamqiz commented Nov 14, 2023

@Vanessa219 唉,我不是说超链接和引用有复制功能, 而是说给行内代码整一个右键菜单;
行内代码和代码块一样,都有需要复制的时候, 不过代码块只需要ctrl+A ctrl+C,但行内代码不行.
标签有右键菜单,我觉得很赞,里面的输入框可以用来修改标签,或者用来复制其纯文本; 行内代码建议也整一个
Snipaste_环境返回_2023-11-15__00-57-08

@Vanessa219
Copy link
Member

标签是有其他功能,而且上面也没有复制功能。行内代码的话就划选一下吧,可能由于不太必须,感觉基本没有软件实现。

@iamqiz
Copy link
Contributor Author

iamqiz commented Nov 15, 2023

@Vanessa219
Copy link
Member

但是看评论需求不大呀。这个右键弄个菜单出来就一个选项,还会占用这个内容菜单。
image

@iamqiz
Copy link
Contributor Author

iamqiz commented Nov 16, 2023

@Vanessa219 eeeee.... 评论区几个人都是有复制纯文本需要的哇,只有一个不赞成以右键菜单的形式
选项少可以加,比如"转换为文本"(感觉不常用) "转换为代码块" (感觉难度大) "删除行内代码"
关于占用,
我看了下,无论是哪种菜单,菜单项都是放在 id="commonMenu" 的元素里,把右键菜单和这个通用菜单整合在一起就行了

@Vanessa219
Copy link
Member

检测到行内元素的话在这个上面加一项:复制行内元素。这样行否?

image

@iamqiz
Copy link
Contributor Author

iamqiz commented Nov 17, 2023

@Vanessa219 对,是这个意思

@Vanessa219 Vanessa219 self-assigned this Nov 19, 2023
Vanessa219 added a commit that referenced this issue Nov 19, 2023
@Vanessa219 Vanessa219 added this to the 2.10.16 milestone Nov 19, 2023
@Vanessa219 Vanessa219 changed the title [提议] 给行内代码添加右键菜单,用于复制其纯文本内容 Add copy code/kbd element item to context menu Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants