[EMACS]helm-mode学习小结

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值