From b6c298d8f7d4d52d9e7ebdd0b707ae34e7e8f53c Mon Sep 17 00:00:00 2001 From: iff Date: Mon, 7 Aug 2023 18:40:06 +0200 Subject: [PATCH] update: README --- Cargo.toml | 2 +- README.md | 1 + rule_parser/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5fb120c..da72eb7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pay-respects" -version = "0.4.0" +version = "0.4.6" edition = "2021" [dependencies] diff --git a/README.md b/README.md index 60bb976..cfb0201 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,7 @@ The placeholder is evaluated as following: - `{{command[2:5]}}`: The second to fifth arguments. If any of the side is not specified, them it defaults to the start (if it is left) or the end (if it is right). - `{{typo[2](fix1, fix2)}}`: This will try to change the second argument to candidates in the parenthesis. The argument in parentheses must have at least 2 values. Single arguments are reserved for specific matches, for instance, `path` to search all commands found in the `$PATH` environment, or the `{{shell}}` placeholder, among others. - `{{opt::}}`: Optional patterns that are found in the command with RegEx (see RegEx crate for syntax). Note that all patterns matching this placeholder will not take a place when indexing. +- `{{cmd::}}`: Get the matching pattern from the last command. Unlike `{{opt}}`, this won't remove the string after matching - `{{err::)}}`: Replace with the output of the shell command. This placeholder can be used along `{{typo}}` as its only argument, where each newline will be evaluated to a candidate. diff --git a/rule_parser/Cargo.toml b/rule_parser/Cargo.toml index 64072de..c2d6b06 100644 --- a/rule_parser/Cargo.toml +++ b/rule_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rule_parser" -version = "0.2.0" +version = "0.2.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html