[英]emacs: search for part of a filename
In eclipse (with the emacs keys) i hit ctrl-x-ctrl-f and it searches for filenames containing the word I type. 在eclipse中(使用emacs键)我点击ctrl-x-ctrl-f并搜索包含单词I type的文件名。 what is the equivalent emacs feature emacs feature?
什么是相同的emacs功能emacs功能?
You might try find-file-in-project + ido-mode . 您可以尝试find-file-in-project + ido-mode 。 Alternative you can try the newer and more feature complete project projectile .
另外,您可以尝试更新,功能更齐全的项目射弹 。
You can autocomplete filenames in the current directory with TAB, but it sounds a little like you are wanting some kind of project management (to find all matching files belonging to a pre-defined project, not just in the current directory). 您可以使用TAB在当前目录中自动完成文件名,但听起来有点像您想要某种项目管理(查找属于预定义项目的所有匹配文件,而不仅仅是在当前目录中)。
Is that the case? 是这样的吗? (If not, which files do you want to search?)
(如果没有,您要搜索哪些文件?)
Mx find-dired
is useful for running arbitrary find commands from the current (or specified) directory. Mx find-dired
对于从当前(或指定)目录运行任意查找命令很有用。
You have to press Tab to display list of files matching your search, it's like auto-completion in bash. 您必须按Tab键才能显示与您的搜索匹配的文件列表,就像在bash中自动完成一样。
Edit: of course after pressing ctrl-x ctrl-f 编辑:当然按下ctrl-x ctrl-f后
这可能有点帮助: http : //www.emacswiki.org/emacs/TextMate
You probably want ido mode with flex matching: 您可能想要使用flex匹配的ido模式:
(ido-mode t)
(setq ido-enable-flex-matching t)
There are several packages that let you type a substring to match during completion. 有几个包允许您在完成期间键入要匹配的子字符串。 Ido is one.
Ido就是其中之一。
Icicles is another -- it also lets you match regexps or match using several varieties of fuzzy matching. 冰柱是另一种 - 它还可以让你匹配正则表达式或匹配使用几种模糊匹配。
http://www.emacswiki.org/emacs/Icicles_-_Apropos_Completions http://www.emacswiki.org/emacs/Icicles_-_Fuzzy_Completion http://www.emacswiki.org/emacs/Icicles_-_Apropos_Completions http://www.emacswiki.org/emacs/Icicles_-_Fuzzy_Completion
Most importantly, Icicles offers progressive completion . 最重要的是, Icicles提供逐步完成 。 That means that you can combine more than one match pattern (they are ANDed).
这意味着您可以组合多个匹配模式(它们是AND)。 Coming up with simple match patterns is much easier than coming up with a single complex regexp to do all the work.
提出简单的匹配模式要比提出一个复杂的正则表达式来完成所有工作要容易得多。 And you can see the cumulative effect of each pattern.
你可以看到每种模式的累积效应。
http://www.emacswiki.org/emacs/Icicles_-_Progressive_Completion http://www.emacswiki.org/emacs/Icicles_-_Progressive_Completion
What's more, you can subtract pattern matches: type another pattern, which gets ANDed with the current matches. 更重要的是,你可以减去模式匹配:输入另一个模式,它与当前匹配进行AND运算。 Then hit C-~ and you end up with the matches you had before the AND minus the ANDed result: the complement of the last pattern-match you added.
然后点击C-〜 ,你最终得到你在AND减去ANDed结果之前的匹配:你添加的最后一个模式匹配的补码 。
http://www.emacswiki.org/emacs/Icicles_-_Nutshell_View#ChippingAway http://www.emacswiki.org/emacs/Icicles_-_Nutshell_View#ChippingAway
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.