-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Feat/support search and replace #780
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
Conversation
- Disable Ctrl-F shortcuts in the code editor to avoid conflicts with the default behavior of the browser - Add keyboard navigation support to the search input box (up and down arrows and return keys) - Optimize the UI layout of the search tab, including adjusting the width and spacing of the input box - Change the close button icon from ChevronDown to a more intuitive X icon
🎊 PR Preview has been successfully built and deployed to https://doocs-md-preview-pr-780.surge.sh |
@syhxzzz 很不错哦👍 搜索框目前放在了右上角,似乎离编辑区有点远,能否直接悬浮在编辑区上? |
还有一个点,按 esc 的时候,搜索框能否消失?就是不需要每次点击 x,才能让搜索框隐藏。@syhxzzz |
左侧的箭头,调整下就好,现在我看着是显示不全 |
… the search interface - Add ESC key monitoring to CodemirrorEditor to close the search tab - Optimize the SearchTab component and add sliding animation effects - Simplify checkMatchNumber function logic - Adjust the width of the search box and add placeholder text
之前代码是 |
我觉得placeholder这个方法不错,目前的场景看起来简单有效。如果要做更灵活更复杂的适配的话,可以考虑根据宽度把放不下的操作收到一个按钮里面,点击按钮再展示其他操作。 |
截止目前的代码,整体效果挺好的,考虑合并,看看还有没有要改的?@syhxzzz @quiet-river |
我先合并,有进一步修改,可以再另外提 pr |
#776
SearchTab
,可以在里面输入搜索词和替换词,可以上下选择选中的搜索词进行跳转,或者替换成其他词