Skip to content

Commit

Permalink
help: commands: Precise the documentation of replace
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKar committed Jan 25, 2024
1 parent b09d257 commit 62d5db5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/help/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ quotes here but these are not necessary when entering the command in micro.

Note that `search` must be a valid regex (unless `-l` is passed). If one
of the arguments does not have any spaces in it, you may omit the quotes.
In case the search is done non-literal (without `-l`) the character `$` can't
be simply added, since `Regexp.Expand()` is used in the background to add
more complex template replacement functionality. To add a `$` a double `$$`
must be used.

* `replaceall 'search' 'value'`: this will replace all occurrences of `search`
with `value` without user confirmation.
Expand Down

0 comments on commit 62d5db5

Please sign in to comment.