helm-mini
helm-mini is like an interactive version of ibuffer.
- If I enter the pattern:
*lisp ^helm @moc, Helm will narrow down the list by selecting only buffers that are in lisp mode, start by helm and match "moc" in their contents. - If I want to specify more than one major-mode, separate them with
,, e.g*!lisp,!sh,!funwill list all buffers but the ones in lisp-mode, sh-mode and fundamental-mode. - If I enter the pattern:
*lisp ^helm moc. Notice there is no@this time helm will look for lisp mode buffers starting by "helm" and have "moc" in their name. - If I enter the pattern:
*!lisp !helmHelm will narrow down to buffers that are not in "lisp" mode and that do not match "helm". -
If I enter the pattern:
/helm/ w3Helm will narrow down buffers that are in any "helm" sub-directory and matching w3.
helm-find-files
helm-find-files is file navigation on steroids(加强版)
- Enter
~/at the end of the pattern to quickly reach home directory. - Enter
/at the end of the pattern to quickly reach root of your file system.
instead use ffap Find file at point, Now, you no longer
have to use a separate command to open the file at point, but using the same C-x C-f. It's really convenient.
File and directory histories, With a prefix argument, helm-find-files displays a list
of visited directories. During a helm-find-filessession, you can get a list of visitedfiles and
directories with C-c h.
helm-ff-do-grep, live grep in Helm
From within a helm-find-files session, you can invokehelm-ff-run-grep with C-s to search a
file/directory on highlighted entry in the Helm buffer. With prefix argument C-u,recursively greps a selected directory. You
can also save the result into a Grep buffer using the actionSave results in Grep buffer.
helm-semantic-or-imenu
The Imenu facility offers a way to find the major definition.
helm-find
interactively get results from Unix find for every character you enter into Helm prompt.
By default, invoking helm-find only searches current directory. With prefix argument C-u (i.e. C-u
C-c h /), a prompt asks for a directory to find. helm-find can be invoked within helm-find-filessession, by using C-c
/. To open more than one file, mark individual candidates with C-SPC or mark all with M-a, then RET. You can switch to helm-find-files with C-x
C-f.
projectile-switch-project
This is the very first command you need to use before using other commands
File management
helm-projectile-find-file
lists all files in a project for users to narrow down to wanted files.All the key bindings associated with actions are only available while a Helm buffer is active.
helm-projectile-find-file-in-known-projects
When executed, it lists all files in all known projects
helm-projectile-find-file-dwim
Find file based on context at point
helm-projectile-find-dir
List available directories in the current project.
helm-projectile-recentf
List recently visited files in current project
helm-projectile-find-other-file
variable: projectile-other-file-alist Each lists hold the current file extension as first element and
other files' extensions to switch to.
本文介绍 Emacs 中的 Helm 插件如何通过多种方式高效地进行文件及缓冲区搜索,包括 helm-mini、helm-find-files 和 helm-find 等命令的使用技巧。文章还涵盖了如何利用 Helm 进行目录导航、文件历史记录管理和实时 grep 搜索。
260

被折叠的 条评论
为什么被折叠?



