diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/operations.qdoc | 12 | ||||
-rw-r--r-- | doc/scripting.qdoc | 6 |
2 files changed, 16 insertions, 2 deletions
diff --git a/doc/operations.qdoc b/doc/operations.qdoc index 565180658..44d5bc84a 100644 --- a/doc/operations.qdoc +++ b/doc/operations.qdoc @@ -90,8 +90,16 @@ is treated as ASCII text. \row \li Replace - \li "Replace" \c file \c search \ replace - \li Opens \c file to find \c search string and replaces that with the \c replace string. + \li "Replace" \c file \c search \c replace \c mode + \li Opens \c file to find \c search string and replaces that with the \c replace string, + using \c mode that can be either \c string or \c regex. For regular expressions + containing capturing groups, occurrences of \c \1, \c \2, ..., in \c replace are + replaced with the string captured by the corresponding capturing group. + + Note that testing the operation using \c devtool does not support commas inside the + \c search pattern as they are used as argument separators. When using \c regex mode you + should also ensure the \c search pattern adheres to \c QRegularExpression class + documentation, particularly to the escaping rules for characters. \row \li LineReplace \li "LineReplace" \c file \c search \c replace diff --git a/doc/scripting.qdoc b/doc/scripting.qdoc index 20004e9b7..68a139c47 100644 --- a/doc/scripting.qdoc +++ b/doc/scripting.qdoc @@ -270,6 +270,12 @@ See also the table that lists examples of \l {Applications-directory-on-Windows} {applications directories on Windows}. \row + \li ApplicationsDirUser + \li Applications directory for user-specific programs. This is useful on macOS, + on other platforms it is the same as \c ApplicationsDir. + + For example, \c {$HOME/Applications} on macOS. + \row \li ApplicationsDirX86 \li Applications Directory for 32 bit programs. This is useful on Windows, on other platforms it is the same as \c ApplicationsDir. |