简体   繁体   English

Emacs按字符快速导航?

[英]Emacs fast navigation by character?

I came across an interesting package that does fast navigation by character, but I can't find it anymore, and can't remember its name. 我遇到了一个有趣的包,它按字符进行快速导航,但我找不到它了,也记不起它的名字了。 Apparently the idea came from vim. 显然这个想法来自vim。 There is definitely an emacswiki page for it. 肯定有一个emacswiki页面。

Basically, you press a key to enter a minor-mode, enter a search term, and it dims the window, and sequentially highlights all occurences of the search term in the window. 基本上,您按一个键进入次要模式,输入搜索词,并使窗口变暗,并按顺序突出显示窗口中搜索词的所有出现。 Then you can press 'a' to go to the first one, 'b' for the second, etc. 然后你可以按“a”转到第一个,“b”转到第二个,等等。

Any help? 有帮助吗?

Edit: I'll add the vim tag, since the vim package name will be enough for me to find it. 编辑:我将添加vim标签,因为vim包名称足以让我找到它。

ace-jump-mode seems to be what you're looking for. ace-jump-mode似乎是你正在寻找的。

The inspiration for AceJump comes from a vim plugin called EasyMotion . AceJump的灵感来自于一个名为EasyMotion的vim插件。 EasyMotion provides a much simpler way to use motions in vim. EasyMotion提供了一种更简单的方法来在vim中使用运动。 It takes the out of w or f{char} by highlighting all possible choices and allowing you to press one key to jump directly to the target. 它通过突出显示所有可能的选项并允许您按一个键直接跳转到目标来取出w或f {char}。 So I decided to write something similar for Emacs. 所以我决定为Emacs写一些类似的东西。

This minor mode gives you the ability to: 这种次要模式使您能够:

  • jump to a word 跳到一个字
  • jump to any characters in a word 跳到单词中的任何字符
  • jump to a line 跳到一条线

The wiki page is also available on the Emacswiki . 维基页面也可以在Emacswiki找到

如果Vim包名称就足够了:我认为你指的是EasyMotion

It's called iy-go-to-char.el , and you probably saw it in this EmacsRocks screencast . 它叫做iy-go-to-char.el ,你可能在这个EmacsRocks截屏视频中看到了它。 I uploaded it to marmalade-repo.org a while ago, too, which may help you if you're using package.el. 我不久前也将它上传到marmalade-repo.org ,如果您使用的是package.el,这可能会对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM