我正在使用emacs prelude。
最近我决定从ido切换到helm。
所以我在emacs prelude中启用了helm
和helm-everywhere
,
一切都很完美,除了helm-find-file
的默认行为
在ido中,我可以按ret
来进入所选目录,但是在helm中我必须按right
或c-j
。
此外,helm-find-files
会在每个目录的顶部列出.
和..
。
这意味着在ido中,如果路径上没有太多目录,我只需按ret
ret
ret
即可到达最终目的地。
但是在helm中,我必须输入一些字符,按c-j
输入至少1个字符,再按c-j
等等。我甚至不能连续按c-j
。
我不想回到ido,因为我真的很喜欢helm在查找文件时的grep功能。
有没有办法可以更改默认顺序,让它可能将.
和..
列在底部,并使用ret
进入目录而不是打开dired?
(define-key helm-map (kbd "C-i") 'helm-execute-persistent-action)
。请参见:http://tuhdo.github.io/helm-intro.html - Marcus Junius Brutus