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

Improve Copy text * #11057

Closed
XinLi0111 opened this issue Apr 16, 2024 · 6 comments
Closed

Improve Copy text * #11057

XinLi0111 opened this issue Apr 16, 2024 · 6 comments
Assignees
Milestone

Comments

@XinLi0111
Copy link

XinLi0111 commented Apr 16, 2024

provide shortkey configuration for copy block reference as *

In what scenarios do you need this feature?

For now, there is configuration for copy block reference as "text ", but the copy "" is also useful in some case.
Just a shortkey configuration, the UI element is not neccessary.

Describe the optimal solution

Describe the candidate solution

No response

Other information

No response

@Vanessa219
Copy link
Member

Do you mean "copy text*"?

image

@XinLi0111
Copy link
Author

XinLi0111 commented Apr 19, 2024

Do you mean "copy text*"?

image

No, just "Copy *", copy refence link as "*" without anchor text.

@Vanessa219
Copy link
Member

没有复制 * 的这个功能

@XinLi0111
Copy link
Author

是的,但是希望能提供功能并支持设定快捷键,避免菜单冗余。

另外,是否考虑优化复制为功能菜单,将这些复制功能统一为复制,在粘贴的时候再选择粘贴为。
一方面向word等软件都是类似操作,另一方面,需要的粘贴为什么样的格式在需要粘贴附近能更清晰的决断,而不是在复制的时候,这样也方便复制一次,在不同位置粘贴为不同样式。

@88250 88250 changed the title provide shortkey configuration for copy block reference as * Improve Copy text * Apr 21, 2024
@88250
Copy link
Member

88250 commented Apr 21, 2024

考虑改进 复制 文本 * 功能:

  • 在选中整个块时,则使用块级锚文本(和现在一样)
    image
  • 在选中块中部分行级元素时,则使用选中的内容作为锚文本
    image
  • 在不选中任何元素时(仅光标位于块内任意位置)时,则使用 * 作为锚文本
    image

这样能避免增加新的功能入口,同时没有副作用,我觉得应该没问题。

@Vanessa219

@Vanessa219 Vanessa219 added this to the 3.0.11 milestone Apr 21, 2024
Vanessa219 added a commit that referenced this issue Apr 21, 2024
@88250
Copy link
Member

88250 commented Apr 21, 2024

另外,是否考虑优化复制为功能菜单,将这些复制功能统一为复制,在粘贴的时候再选择粘贴为。
一方面向word等软件都是类似操作,另一方面,需要的粘贴为什么样的格式在需要粘贴附近能更清晰的决断,而不是在复制的时候,这样也方便复制一次,在不同位置粘贴为不同样式。

这个只能在复制时区分,因为粘贴时有的软件并不支持处理思源的富文本格式,所以只能在复制时区分是否是纯文本,类似 JetBrains IDE 的做法:

image

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