Skip to content

Commit 6168c45

Browse files
committed
explain smart autoquote in README
1 parent 9415370 commit 6168c45

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ Call live grep args:
8787
If the prompt value does not begin with `'`, `"` or `-` the entire prompt is treated as a single argument.
8888
This behaviour can be turned off by setting the `auto_quoting` option to `false`.
8989

90+
Setting the `auto_quoting` option to `smart` allows using `--` as a seperator before flags.
91+
The part before the seperator is taken as a single argument, and the part after is split.
92+
Again, if the prompt begins with `'`, `"` or `-`, this is disabled and control is manual.
93+
94+
| prompt | args (smart mode) |
95+
| --- | --- |
96+
| `foo bar` | `foo bar` |
97+
| `foo bar -- --flag` | `foo bar`, `--flag` |
98+
| `"foo bar" baz --flag` | `foo bar`, `baz`, `--flag` |
99+
90100

91101
## Configuration
92102

0 commit comments

Comments
 (0)