From 1c76bf623ae96f88c31a7210fea8341a21c48e56 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 25 Jun 2019 23:31:54 +0900 Subject: tdefilereplace: updated docbook. Signed-off-by: Michele Calgaro --- doc/tdefilereplace/index.docbook | 103 +++++++++++++-------------------------- 1 file changed, 35 insertions(+), 68 deletions(-) (limited to 'doc/tdefilereplace/index.docbook') diff --git a/doc/tdefilereplace/index.docbook b/doc/tdefilereplace/index.docbook index 571b6ff..4db26f9 100644 --- a/doc/tdefilereplace/index.docbook +++ b/doc/tdefilereplace/index.docbook @@ -57,7 +57,7 @@ Introduction - &tdefilereplace; is an application used to search and replace a list of strings in a file tree. The strings may be literal or Qt-like regular expressions. There are also other options to tune your search. + &tdefilereplace; is an application used to search and replace a list of strings in a file tree. The strings may be literal or TQt-like regular expressions. There are also other options to tune your search. @@ -69,7 +69,7 @@ &tdefilereplace; in its standalone incarnation - + &tdefilereplace; in its standalone incarnation @@ -89,9 +89,6 @@ - - - &tdefilereplace;'s toolbar @@ -127,18 +124,6 @@ - - - - - - - Replace - - This button starts a search&replace loop. When a string has been found, &tdefilereplace; replaces it with another string. - - - @@ -151,6 +136,18 @@ + + + + + + + Replace + + This button starts a search&replace loop. When a string has been found, &tdefilereplace; replaces it with another string. + + + @@ -187,18 +184,6 @@ - - - - - - - Edit Strings - - This button edits a selected string. - - - @@ -247,18 +232,6 @@ - - - - - - - Search in Subfolders - - This button allows you to search/replace recursively in the subfolders of your base directory. - - - @@ -320,17 +293,14 @@ - - - &tdefilereplace;'s Results view - The Results view shows the name of the files that contain the strings you have to retrieve (and replace), their path, their size, the number of strings found and the user id of the files. This view also provides the exact position of each match. The columns can be sorted either ascending or descending by clicking on the column headers. + The Results view shows the name of the files that contain the strings that match the search criterias, their path, their size, the number of strings found, the user and group of the files owner. This view also provides the exact position of each match. The columns can be sorted either ascending or descending by clicking on the column headers. You can open a file by clicking with the &RMB; on a list entry, by single/double clicking (depending on your mouse settings) on an entry or alternatively by selecting an item and pressing Enter. - + You can inspect the file properties using Properties from the &RMB; menu. You can also delete a file from the file system using Delete or simply remove the item from the results list using the Remove Entry command. @@ -350,8 +320,7 @@ - The Strings view visualizes the list of strings you want search/replace. Please note that in search mode the Results view and the Strings view have a different layout. - + The Strings view visualizes the list of strings you want to search for and eventually replace with. Please note that the layout of both the Results view and the Strings view is different if you are only searching or if you are searching and replacing. @@ -373,7 +342,7 @@ When you want to begin a new session the first step is to click on the Customize Search/Replace Session button. Then you must enter the base path and a sequence of shell-like wildcards to use as filter. - Then you could set some useful options, like searching in all the subfolders, doing a case-sensitive search, enabling commands and/or regular expressionsPlease note that regular expressions and commands could slow down the speed performances., doing a backup copy of each file before replacing. + Then you could set some useful options, like searching in all the subfolders including limiting the max depth of searching, doing a case-sensitive search, enabling commands and/or regular expressionsPlease note that regular expressions and commands could slow down the speed performances., doing a backup copy of each file before replacing. If you want to start searching, you can put a string in the search box and press Search Now, otherwise leave the search box empty and press Search Later. @@ -390,7 +359,7 @@ - The Advanced tab allows you to set up some useful options to restrict the search to a subset of your target file tree. If you want to run &tdefilereplace; only over files that have a size in the range of 10KB - 100KB, then you could use the size options. There is also a date option that restricts the search in a temporal range, and a last option that allows you to only search for files owned (or not owned) by a particular user (this may be more useful to the system administrators). + The Advanced tab allows you to set up some useful options to restrict the search to a subset of your target file tree. You can set restrictions on the size, access date and ownership of the files to be searched for. @@ -400,7 +369,7 @@ General options - These options have been presented in the Toolbar section. + These options have been presented in the Toolbar section. In addition to those, you can specify the default file encoding to use and the suffix for backing up files. The General tab of the Options window @@ -429,11 +398,13 @@ + Confirm before replace each string Do not show files if no strings are found or replaced When searching, stop on first string found Follow symbolic links Ignore hidden files and directories + choose whether to confirm the replacement of each string or not. shows only the files that match some of your strings. This will speed up the search. &tdefilereplace; will stop when it finds a matching string, and will continue to search for other strings or, if you search for only one string, it will continue with the next file. if a file is a link to another one, then search in the real file. @@ -465,29 +436,26 @@ This chapter provides informations about some useful capabilities of &tdefilereplace;. How to save your string list - When you want to reuse a list of strings you can save it in a xml file. To do this select from the menubar Search/ReplaceStringsSave Strings List to File. When you save a list, a simple xml file with extension kfr is created. To load a kfr file select from menubar Search/ReplaceStringsLoad Strings List from File. The actual file looks like this: + When you want to reuse a list of strings you can save it in a xml file. To do this select from the menubar Search/ReplaceStringsSave Strings List to File.... When you save a list, a simple xml file with extension kfr is created. To load a kfr file select from menubar Search/ReplaceStringsLoad Strings List from File.... The actual file looks like this: <?xml version="1.0" ?> <kfr> <mode search="false"/> <replacement> - <oldstring><![CDATA[SEARCH_STRING_1]] ></oldstring> - <newstring><![CDATA[REPLACE_STRING_1]]></newstring> + <oldstring><SEARCH_STRING_1></oldstring> + <newstring><REPLACE_STRING_1></newstring> </replacement> <replacement> - <oldstring><![CDATA[SEARCH_STRING_2]]></oldstring> - <newstring><![CDATA[REPLACE_STRING_2]]></newstring> + <oldstring><SEARCH_STRING_2></oldstring> + <newstring><REPLACE_STRING_2></newstring> </replacement> - - + ... + ... <replacement> - <oldstring><![CDATA[SEARCH_STRING_N]]></oldstring> - <newstring><![CDATA[REPLACE_STRING_N]]></newstring> + <oldstring><SEARCH_STRING_N></oldstring> + <newstring><REPLACE_STRING_N></newstring> </replacement> - </kfr> - - If you are using a previous format, you can update by hand your file by simply modifying it according to the above scheme. Alternatively, you can load the file written in the old format and save it again with &tdefilereplace; in the way explained before. @@ -499,15 +467,13 @@ - - - &tdefilereplace;'s Report feature + You can also save and load the results list contents to/from file using the Search/ReplaceResultsSave Results List to file... and Search/ReplaceResultsLoad Results List from file.... This is very useful if you are searching over a lot of files and for many strings, so you can save and resume your checks across multiple days. @@ -524,7 +490,8 @@ How to Open a File - If you want to open a file that matches some of your strings, you have to select a line in the result view and click on it with the &RMB;. A context menu will appear from which you can open the file. If you use &tdefilereplace; embedded in &quantaplus;, you can open the file directly in it at the specified line and column. + You can open a file by clicking with the &RMB; on a list entry, by single/double clicking (depending on your mouse settings) on an entry or alternatively by selecting an item and pressing Enter. If you use &tdefilereplace; embedded in &quantaplus;, you can open the file directly in it at the specified line and column. + @@ -589,7 +556,7 @@ Documentation Copyright © 2004 Emiliano Gulmini emi_barbarossa@y [$random:$] [$mathexp:bc-expression$] - this command return the current date and time in Qt ISO format. + this command return the current date and time in TQt ISO format. like above but in local format. return the UID of the current user. return the GID of the current user. -- cgit v1.2.1