[英]Emacs - how to avoid backtracking cursor movements when navigating
I've been using emacs for years, but I noticed a habit of mine that slows down my workflow. 我多年来一直在使用emacs,但我注意到我的习惯会减慢我的工作流程。 I do a lot of "backtracking" with "forward"-moving commands.
我用“前进” - 移动命令做了很多“回溯”。
For example, when I use Mf to several times to jump forward a word, but it jumps me to the end of the words, so often when I reach the word I'm trying to get to press Mb to go back to the beginning of the word. 例如,当我使用Mf几次向前跳一个单词时,它会将我跳到单词的末尾,所以经常当我到达单词时我试图按Mb返回到开头这个单词。
Similar thing happens when I search with Cs to search, when I find the pattern, the cursor is at the end of the matched pattern and I need to press Mb again to go back to the beginning. 类似的事情发生在我用Cs搜索搜索时,当我找到模式时,光标位于匹配模式的末尾,我需要再次按Mb返回到开头。
Given how frequently I do these sorts of actions, this adds up to a slower workflow. 考虑到我执行这些操作的频率,这会增加工作流程的速度。 In some cases, using reverse-oriented commands like backward-kill can help, but this requires memorizing more commands and isn't applicable in all cases (for example, if I want to start typing at the beginning of the word).
在某些情况下,使用反向导向等反向命令可能有所帮助,但这需要记忆更多命令,并不适用于所有情况(例如,如果我想在单词的开头键入内容)。
Is there a better approach to navigation in emacs that avoids these redundant actions? 在emacs中有更好的导航方法可以避免这些冗余操作吗?
Recently I use Ace Jump mode 最近我使用Ace Jump模式
"What's ace-jump-mode? “什么是ace-jump-mode?
ace-jump-mode is an fast/direct cursor location minor mode. ace-jump-mode是快速/直接光标位置次要模式。 It will create the N-Branch search tree internal and marks all the possible position with predefined keys in current view.
它将在内部创建N分支搜索树,并在当前视图中使用预定义键标记所有可能的位置。 Allowing you to move to the character/word/line almost directly." --emacswiki
允许你几乎直接移动到字符/单词/行。“ - emacswiki
there is a video http://emacsrocks.com/e10.html 有一个视频http://emacsrocks.com/e10.html
我用于在Cu N Cf或Cu N Cb中间导航,其中N是我想跳的字符数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.