diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2019-09-26 08:09:00 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2019-09-26 08:09:00 +0200 |
commit | 72f68624b6f19ead155a7e1006a5550d92b8ec9f (patch) | |
tree | 774176c3bc454baa3e9532959dcf9ecabac4af76 /helm-help.el | |
parent | 2017a2af000f2b8583bdb336ba56d32044a3b0ba (diff) |
Document esh placeholders
Diffstat (limited to 'helm-help.el')
-rw-r--r-- | helm-help.el | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/helm-help.el b/helm-help.el index b2aaff7d..15f29e4b 100644 --- a/helm-help.el +++ b/helm-help.el @@ -1399,6 +1399,35 @@ But you can also pass an argument or more after \"candidate_file\" like this: <command> candidate_file [extra_args] +**** Use placeholders in extra arguments + +placeholder for file without extension: \\@ +placeholder for incremental number: \\# + +\"candidate_file\" will be added at \"%s\" and \\@ but without extension. + + <command %s \\@> + +\"candidate_file\" will be added at \"%s\" and \\# will be replaced by an incremental number. + + <command> %s \\# + +Here examples: + +Say you want to use the =convert= command to convert all your .png files in a directory to .jpg. + +This will convert all your files to jpg keeping the same basename. + + convert %s \\@.jpg + +This will convert all your files to foo-001.jpg, foo-002.jpg etc... + + convert %s foo-\\#.jpg + +You can of course combine both placeholders if needed. + + convert %s \\@-\\#.jpg + *** Specify marked files as arguments Example: |