Task #1203

TBX: 0.7.7: SearchReplaceInDirectory "showMatchingFilesOnly" option behave like grep

Added by Matthieu Decorde over 4 years ago. Updated over 4 years ago.

Status:Feedback Start date:12/15/2014
Priority:Normal Due date:
Assignee:- % Done:

90%

Category:Macros Spent time: -
Target version: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

History

#1 Updated by Serge Heiden over 4 years ago

  • Description updated (diff)

#2 Updated by Matthieu Decorde over 4 years ago

  • Status changed from New to Feedback

#3 Updated by Matthieu Decorde over 4 years ago

  • Description updated (diff)
  • % Done changed from 80 to 90

Also available in: Atom PDF