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

重构代码逻辑 #22

Open
TCOTC opened this issue Dec 14, 2024 · 1 comment
Open

重构代码逻辑 #22

TCOTC opened this issue Dec 14, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@TCOTC
Copy link
Owner

TCOTC commented Dec 14, 2024

参考 https://ld246.com/article/1733916154649

@TCOTC TCOTC self-assigned this Dec 14, 2024
@TCOTC TCOTC added the enhancement New feature or request label Dec 14, 2024
@TCOTC TCOTC added this to the 1.0.0 milestone Dec 14, 2024
@QMike0
Copy link

QMike0 commented Dec 18, 2024

小建议,可以将帖子里面的内容和本插件功能小小结合一下,流程如下:
选中文本,按本插件的快捷键 --> (弹出搜索框并)自动填充选中的文本,执行搜索
另外加一下“高亮上一个/下一个关键词“的快捷键即可

原因:

  1. 上述流程其实就是各家IDE/web的逻辑,合并了“打开搜索框 - 复制粘贴需要搜索的文本”的过程,操作更简洁
  2. 帖子里面那种“选中文本后立即执行高亮搜索“的方式,其实是有些烦人的,毕竟是笔记而非IDE,大部分时候选中文本并非要检索相同关键词。加上“按本插件的快捷键”这步操作就能避免该问题

更新:才发现就是这个issue,但似乎那个帖子里面的JS存在问题,只能填充内容,不能搜索

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

No branches or pull requests

2 participants