Merge pull request #97 from ilyagr/patch-1

Readme: clarify that we use the `gawk` ERE syntax, not `grep -E`
This commit is contained in:
Morantron 2023-09-27 11:31:33 +02:00 committed by GitHub
commit e1c9c66267
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' set -g @fingers-pattern-50 'whatever'
``` ```
Patterns are case insensitive, and grep's extended syntax ( ERE ) should be used. Patterns Patterns are case insensitive, and
matching the empty string are disallowed. [`gawk`'s syntax for extended regular expressions (EREs)](https://github.com/Morantron/tmux-fingers/issues/96)
`man grep` for more info. 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 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 ## @fingers-main-action