Skip to content

Commit

Permalink
explain smart autoquote in README
Browse files Browse the repository at this point in the history
  • Loading branch information
goolmoos committed Dec 19, 2022
1 parent 9415370 commit 6168c45
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@ Call live grep args:
If the prompt value does not begin with `'`, `"` or `-` the entire prompt is treated as a single argument.
This behaviour can be turned off by setting the `auto_quoting` option to `false`.

Setting the `auto_quoting` option to `smart` allows using `--` as a seperator before flags.
The part before the seperator is taken as a single argument, and the part after is split.
Again, if the prompt begins with `'`, `"` or `-`, this is disabled and control is manual.

| prompt | args (smart mode) |
| --- | --- |
| `foo bar` | `foo bar` |
| `foo bar -- --flag` | `foo bar`, `--flag` |
| `"foo bar" baz --flag` | `foo bar`, `baz`, `--flag` |


## Configuration

Expand Down

0 comments on commit 6168c45

Please sign in to comment.