From e50914e4aa176b2c3511bbaa363af96680509869 Mon Sep 17 00:00:00 2001 From: Guy Shefy Date: Thu, 9 Jun 2022 15:14:20 +0300 Subject: [PATCH] explain smart autoquote in README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 49a6a60..326049e 100644 --- a/README.md +++ b/README.md @@ -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