summaryrefslogtreecommitdiff
path: root/helm-help.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-02-01 08:53:26 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-02-01 08:53:26 +0100
commitcc135c8928fbddb6d5e3d25235bd4fed0046a4e0 (patch)
tree382ed694a9346717433906dbd0c569cc2360e22c /helm-help.el
parentb54d937634986dbebe97c0283137bcde07ed2275 (diff)
Update HFF documentation.
* helm-help.el (helm-ff-help-message): Do it.
Diffstat (limited to 'helm-help.el')
-rw-r--r--helm-help.el59
1 files changed, 55 insertions, 4 deletions
diff --git a/helm-help.el b/helm-help.el
index 3bed8073..fd1e7613 100644
--- a/helm-help.el
+++ b/helm-help.el
@@ -455,11 +455,62 @@ You can bookmark your `helm-find-files' session with `C-x r m'.
You can retrieve later these bookmarks easily by using M-x helm-filtered-bookmarks
or from the current `helm-find-files' session just hitting `C-x r b'.
-*** Run Gid from `helm-find-files'
+*** Grep files from `helm-find-files'
-You can navigate to a project containing an ID file created with the `mkid'
-command from id-utils, and run the `gid' command which will use the symbol at point
-in `helm-current-buffer' as default.
+You can grep individual files from `helm-find-files' by using
+\`\\<helm-find-files-map>\\[helm-ff-run-grep]'. This same command can
+grep also recursively files from current directory when called with a
+prefix arg, you will be prompted in this case for the file extensions
+to use (grep backend) or the types of files to use (ack-grep backend),
+see the `helm-grep-default-command' documentation to setup this.
+For compressed files or archives, use zgrep with
+\`\\<helm-find-files-map>\\[helm-ff-run-zgrep]'.
+
+Otherwise you can use other recursive commands like
+\`\\<helm-find-files-map>\\[helm-ff-run-grep-ag]' or `\\<helm-find-files-map>\\[helm-ff-run-git-grep]' that are much more
+faster than using `\\<helm-find-files-map>\\[helm-ff-run-grep]' with a
+prefix arg. See `helm-grep-ag-command' and
+`helm-grep-git-grep-command' to setup this.
+
+You can also use the gid shell command
+\`\\<helm-find-files-map>\\[helm-ff-run-gid]' from id-utils by creating
+an ID index file with the `mkid' shell command coming with the
+id-utils package.
+
+All these grep commands are using symbol at point as default pattern.
+Note that default is a different thing than input (nothing is added to
+prompt until you hit `M-n').
+
+*** Setting up aliases in eshell allows you to setup powerful customized commands
+
+Adding eshell aliases to your `eshell-aliases-file' or using the
+`alias' command from eshell allows you to create personalized commands
+not available in `helm-find-files' actions and use them from `\\<helm-find-files-map>\\[helm-ff-run-eshell-command-on-file]'.
+Example:
+You want a command to uncompress your \"*.tar.gz\" files from `helm-find-files':
+
+1) Create an alias named untargz (or whatever) in eshell with the
+command \"alias untargz tar zxvf $*\"
+
+2) Now from `helm-find-files' select your \"*.tar.gz\" file (you can
+mark files if needed) and hit `\\<helm-find-files-map>\\[helm-ff-run-eshell-command-on-file]'.
+
+Note:
+
+When using marked files with this, the meaning of prefix arg is quite
+subtil: Say you have foo, bar and baz marked, when you run the alias
+command `example' on these files with no prefix arg it will loop on
+the file list and run:
+
+example foo
+example bar
+example baz
+
+However with a prefix arg it will do
+
+example foo bar baz
+
+Of course the alias command should support this.
** Commands
\\<helm-find-files-map>