File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,16 @@ Call live grep args:
8787If the prompt value does not begin with ` ' ` , ` " ` or ` - ` the entire prompt is treated as a single argument.
8888This 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
You can’t perform that action at this time.
0 commit comments