Readme: clarify that we use the `gawk` ERE syntax, not `grep -E`

See https://github.com/Morantron/tmux-fingers/issues/96 for an issue caused by the difference between the two syntaxes.
This commit is contained in:
Ilya Grigoriev 2023-06-16 13:21:48 -07:00 committed by GitHub
parent 2e08de209e
commit ec42596e05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -128,12 +128,13 @@ set -g @fingers-pattern-1 'yolo'
set -g @fingers-pattern-50 'whatever'
```
Patterns are case insensitive, and grep's extended syntax ( ERE ) should be used. Patterns
matching the empty string are disallowed.
`man grep` for more info.
Patterns are case insensitive, and
[`gawk`'s syntax for extended regular expressions (EREs)](https://github.com/Morantron/tmux-fingers/issues/96)
should be used (see also `man gawk`). It is very similar to, but slightly
different from, the `grep -E` ERE syntax.
If the introduced regexp contains an error, an error will be shown when
invoking the plugin.
invoking the plugin. Patterns matching the empty string are disallowed.
## @fingers-main-action