Skip to content

使用快捷键 复制为XX 后,短暂高亮块 #11574

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

Closed
TCOTC opened this issue May 29, 2024 · 11 comments
Closed

使用快捷键 复制为XX 后,短暂高亮块 #11574

TCOTC opened this issue May 29, 2024 · 11 comments
Assignees

Comments

@TCOTC
Copy link
Contributor

TCOTC commented May 29, 2024

In what scenarios do you need this feature?

我需要在使用快捷键后能够选中与高亮该块来辅助判断我复制的是否是正确的块。

目前直接按 Ctrl+C 复制块时会选中与高亮被复制的块,但用下面这几个快捷键就不会:

image

Describe the optimal solution

使用快捷键 复制为XX 后选中与高亮该块

Describe the candidate solution

No response

Other information

No response

@Vanessa219
Copy link
Member

这几个并不是内容,内容才需要选中。

@TCOTC
Copy link
Contributor Author

TCOTC commented May 30, 2024

手动选中块之后能按快捷键,那按快捷键之后为什么不能自动选中块呢?

@Vanessa219
Copy link
Member

手动选择指的是?按哪一个快捷键?

@TCOTC
Copy link
Contributor Author

TCOTC commented May 31, 2024

点击块标、EscShift+↑ 都能选中块,然后就能用这几个快捷键:

image

因为我已经选中了块,所以我知道快捷键 复制为 的对象是哪个块。

但如果没有先选中块,而是直接使用快捷键,我就不清楚 复制为 的是当前段落块还是上层的容器块。(比如我试过之后发现,如果没有先选中块,绝大多数情况下复制的是段落块,但偶尔会复制成上层的容器块)


只有 Ctrl+C 时会高亮块:

default.webm

@Vanessa219
Copy link
Member

复制的是当前光标所在的块,如果当前块没有相邻的块,则为父块。

@TCOTC
Copy link
Contributor Author

TCOTC commented Jun 3, 2024

我还是希望我用快捷键之后能高亮一下相应的块

@Vanessa219
Copy link
Member

再看看其他用户的需求吧

@TCOTC
Copy link
Contributor Author

TCOTC commented Dec 16, 2024

类似的需求:https://ld246.com/article/1734338113594

@Vanessa219 我觉得可以为对应的块短暂添加 .protyle-wysiwyg--hl 类名(添加 1s 再移除)

@TCOTC TCOTC changed the title 使用快捷键 复制为XX 后选中与高亮该块 使用快捷键 复制为XX 后,短暂高亮块 Dec 16, 2024
@Vanessa219
Copy link
Member

这个提示以前好像讨论过,复制不进行提示的。

@TCOTC
Copy link
Contributor Author

TCOTC commented Dec 16, 2024

我觉得更多是一种交互的反馈带来的安心感,按快捷键之后没有反应的话会怀疑是否有正确复制对应的块

@Vanessa219
Copy link
Member

很多软件复制都没有反馈的,否则太干扰了。

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

2 participants