mirror of
https://github.com/sharkdp/fd
synced 2024-10-02 22:13:31 +00:00
Fix documentation for brace escapes
This commit is contained in:
parent
d9b69c8405
commit
069b181625
10
doc/fd.1
vendored
10
doc/fd.1
vendored
|
@ -380,14 +380,16 @@ parent directory
|
||||||
path without file extension
|
path without file extension
|
||||||
.IP {/.}
|
.IP {/.}
|
||||||
basename without file extension
|
basename without file extension
|
||||||
.IP {{}
|
.IP {{
|
||||||
literal '{'
|
literal '{' (an escape sequence)
|
||||||
|
.IP }}
|
||||||
|
literal '}' (an escape sequence)
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
If no placeholder is present, an implicit "{}" at the end is assumed.
|
If no placeholder is present, an implicit "{}" at the end is assumed.
|
||||||
|
|
||||||
If you need to include the literal text of one of the placeholders, you can use "{{}" to
|
Notice that you can use "{{" and "}}" to escape "{" and "}" respectively, which is especially
|
||||||
escape the first "{". For example "{{}}" expands to "{}", and "{{}{{}}}" expands to "{{}".
|
useful if you need to include the literal text of one of the above placeholders.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
|
|
|
@ -808,7 +808,8 @@ impl clap::Args for Exec {
|
||||||
'{//}': parent directory\n \
|
'{//}': parent directory\n \
|
||||||
'{.}': path without file extension\n \
|
'{.}': path without file extension\n \
|
||||||
'{/.}': basename without file extension\n \
|
'{/.}': basename without file extension\n \
|
||||||
'{{}': literal '{' (for escaping)\n\n\
|
'{{': literal '{' (for escaping)\n \
|
||||||
|
'}}': literal '}' (for escaping)\n\n\
|
||||||
If no placeholder is present, an implicit \"{}\" at the end is assumed.\n\n\
|
If no placeholder is present, an implicit \"{}\" at the end is assumed.\n\n\
|
||||||
Examples:\n\n \
|
Examples:\n\n \
|
||||||
- find all *.zip files and unzip them:\n\n \
|
- find all *.zip files and unzip them:\n\n \
|
||||||
|
|
Loading…
Reference in a new issue