[EMACS]helm学习备忘

helm-mini

helm-mini is like an interactive version of ibuffer,交互式buffer管理插件.
1. 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.
2. 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.
3. 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.
4. 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”.
5. 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(文件查找加强版)
1. Enter~/at the end of the pattern to quickly reach home directory.
2. Enter/at the end of the pattern to quickly reach root of your file system.
3. 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.
4. File and directory histories, With a prefix argument, helm-find-files displays a list of visited directories. During a helm-find-files session, you can get a list of visited files and directories with C-c h.

helm-ff-do-grep

From within a helm-find-files session, you can invoke helm-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 action Save 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-files session, 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

  • projectile-switch-project, This is the very first command you need to use before using other commands
  • helm-projectile-find-filelists 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 lists all files in all known projects
  • helm-projectile-find-file-dwimFind file based on context at point
  • helm-projectile-find-dirList available directories in the current project.
  • helm-projectile-recentfList recently visited files in current project
  • helm-projectile-find-other-file根据源文件找头文件, 变量projectile-other-file-alist 保存着头文件和源文件后缀的对应关系
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值