IntelliJ IDEA中有类似emacs的增量搜索吗?
我怀念 emacs 增量搜索的行为。在 emacs 中,我们可以这样做:
- 铯
- 键入搜索文本,即“按钮”
将找到第一次出现的按钮。如果继续按 Cs,将找到下一个出现的情况。在我看来,IntelliJ 与此接近,只是您需要按不同的按键进行第二次搜索。对我来说,这很烦人。我宁愿在第一次和后续搜索时按相同的按键。
这在 IntelliJ 中可能吗?它在 Eclipse 中与 emacs 键绑定配合得很好。
编辑:我对这个问题开放了赏金。是否有一个将此功能的类似实现编写为 IntelliJ IDEA 的插件或补丁的示例?
I miss the emacs behavior for incremental search. In emacs, we can do this:
- C-s
- key in search text, i.e. "button"
The first occurance of button will be found. If you continue to press C-s, the next occurance will be found. It seems to me that IntelliJ is close to this, except that you need to press a different keystroke for the second search. To me, this gets annoying. I would much rather press the same keystoke for the first as well as subsequent searches.
Is this possible in IntelliJ? It works great in Eclipse with emacs keybindings.
Edit: I opened up a bounty on this question. Is there an example of a similar implementation of this functionality written as a plug-in or patch to IntelliJ IDEA?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在较新版本的 IntelliJ 中,增量搜索使用箭头键在搜索词命中时向上/向下导航。例如:
In newer releases of IntelliJ, incremental search uses arrow keys to navigate up/down on search term hits. E.g.:
IDEA问题跟踪器中有一个2年前提交的请求:
Emacs 模式:首次搜索后再次增量搜索应映射到 Ctrl-S、Ctrl-R< /a>.
由于IDEA 现在是开源的,任何人都可以提交实现此功能的补丁,它将提交到下一个 IDEA 版本。
There is a request in IDEA issue tracker submitted 2 years ago:
Emacs-Mode: Incremental Search Again should be mapped to Ctrl-S,Ctrl-R after first search.
As IDEA is open source now, anyone can submit a patch implementing this feature and it will be committed to the next IDEA version.