You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple line search arguments are allowed for Find/Replace in Files, but they must be in regex format. Since search argument fields are pre-populated from current selection, it would be nice if newlines in selected text were converted to "\n" string instead of just being removed, and also on regex flag is turned on.
Also, we should think of a way to insert newlines via "replace with" text.
For example:
Start with this text in page:
aaa
bbb
ccc
Select range starting with "aaa" and ending with "bbb"
Find > Replace in Selected File/Folder
The newline is removed from the selelction and the search argument is pre-populated to "aaabbb". Would be nice if the newline was replaced with "\n" so it was "aaa\nbbb". Also, regex flag should be turned on (if not on already)
I'd also like to put something like "yyy\nzzz" in the "Replace With" field to have 2 lines inserted.
The text was updated successfully, but these errors were encountered:
Issue by redmunds
Friday Jun 20, 2014 at 23:14 GMT
Originally opened as adobe/brackets#8211
Multiple line search arguments are allowed for Find/Replace in Files, but they must be in regex format. Since search argument fields are pre-populated from current selection, it would be nice if newlines in selected text were converted to "\n" string instead of just being removed, and also on regex flag is turned on.
Also, we should think of a way to insert newlines via "replace with" text.
For example:
Start with this text in page:
Select range starting with "aaa" and ending with "bbb"
Find > Replace in Selected File/Folder
The newline is removed from the selelction and the search argument is pre-populated to "aaabbb". Would be nice if the newline was replaced with "\n" so it was "aaa\nbbb". Also, regex flag should be turned on (if not on already)
I'd also like to put something like "yyy\nzzz" in the "Replace With" field to have 2 lines inserted.
The text was updated successfully, but these errors were encountered: