Task #1203
TBX: 0.7.7: SearchReplaceInDirectory "showMatchingFilesOnly" option behave like grep
Statut: | Closed | Début: | 15/12/2014 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 100% |
|
Catégorie: | Macros | Temps passé: | - | |
Version cible: | TXM 0.7.7 |
Description
SH: The SearchReplaceInDirectory "showMatchingFilesOnly" option behavior must be coherent with the script behavior without the option (actual string 'replacement' in the files). If the 'replacement' behavior asks for a full line regexp, the 'showMatchingFilesOnly' must also ask for a full line regexp. Otherwise, the 'showMatchingFilesOnly' option is not an option, it is another command and the script should be splet.
MD: the SearchReplaceInDirectory "showMatchingFilesOnly" option must not behave like grep.
The user must add manually ".*" if necessary
Solution¶
- remove the starting and ending ".*" in the regular expression
- remove the "showMatchingFilesOnly" option and create the SearchInDirectory macro
Validation test
search and replace "aa" in the following content
aa bb aaa bb a bb aaaa b
MD : OK Linux 64bit
Historique
#1 Mis à jour par Serge Heiden il y a presque 11 ans
- Description mis à jour (diff)
#2 Mis à jour par Matthieu Decorde il y a presque 11 ans
- Statut changé de New à Feedback
#3 Mis à jour par Matthieu Decorde il y a plus de 10 ans
- Description mis à jour (diff)
- % réalisé changé de 80 à 90
#4 Mis à jour par Matthieu Decorde il y a plus de 4 ans
- % réalisé changé de 90 à 100
#5 Mis à jour par Matthieu Decorde il y a plus de 4 ans
- Statut changé de Feedback à Closed