[EMACS]helm-mode学习小结

来源:互联网 发布:软考程序员有必要考吗 编辑:程序博客网 时间:2024/06/05 20:04

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,!fun will 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 !helm Helm will narrow down to buffers that are not in "lisp" mode and that do not match "helm".
  • If I enter the pattern: /helm/ w3 Helm 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.

原创粉丝点击