在 Mutt 1.11.4 中,没有用于获取上一个搜索结果的键绑定,但很容易添加一个muttrc
:
bind index N search-opposite
# Ctrl-n toggles whether a mail is considered new or not
bind index \cn toggle-new
Run Code Online (Sandbox Code Playgroud)
因为N默认情况下映射到toggle-new
,所以我将其重新映射到Ctrl+ n。
?既然我们已经做到了,我们可以通过映射开始向后搜索(默认映射到Esc+ /)来使 Mutt 的行为更像 Vim 。
bind index ? search-reverse
# ? used to show help, so we remap that
bind index <F1> help
Run Code Online (Sandbox Code Playgroud)