mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 02:14:19 +00:00
Update documentation on how to override the delimiter_var configuration
Signed-off-by: alexis-opolka <alexis.opolka@proton.me>
This commit is contained in:
parent
2a87d5ec08
commit
08e96d0053
1 changed files with 12 additions and 1 deletions
|
|
@ -104,9 +104,20 @@ You can define it as such:
|
|||
|
||||
```yaml
|
||||
finder:
|
||||
delimiter_var: <your-regex-delimiter>
|
||||
delimiter_var: <your-regex-delimiter> ### By default the expression is \s\s
|
||||
```
|
||||
|
||||
> [!CAUTION]
|
||||
> Defining the delimiter via the configuration file means that Navi will use this delimiter by default for
|
||||
> every variable using the `--column` instruction.
|
||||
|
||||
You can override this configuration with the `--delimiter` instruction in the variable definition of your cheatsheet.
|
||||
|
||||
It can be overriden like this:
|
||||
|
||||
```yaml
|
||||
echo <image_id>
|
||||
|
||||
$ image_id: ... --- --column 3 --header-lines 1 --delimiter '\s\s+' # <-- This variable uses \s\s+ as a delimiter
|
||||
$ image_tag: ... --- --column 3 --header-lines 1 # <-- This variable uses the default delimiter
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue