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
{{ message }}
Repository navigation
Global search & replace can't match a whole line #18671
*duplicateIssue identified as a duplicate of another issue(s)feature-requestRequest for new features or functionalitysearchSearch widget and operation issues
Steps to Reproduce:
I what to search for the whole of a line and replace it with nothing, i.e. delete that line.
Searcher whole-line-text and leave replace entry blank.
Matches the line, but replace leaves a blank line.
Tried appending \n to search string. Doesn't match anything.
Tried turning on regular expressions and appending "$" and end of search string. This only matched again one file, where as without "$" it matched lots of files. Doing a replace on this file still left a blank line.
Putting ^ at the start of the line matched lots of files, but replace left a blank line.
How do I get the whole of line matched so I can remove it completely?
Thanks.
I've got a similar problem in single file search (Ctrl+F). I want to completely remove a string. So I leaving the replace box empty, and press either of the replace button (current one or all). Nothing happened. This is using the insiders build. I'll raise another issue.
*duplicateIssue identified as a duplicate of another issue(s)feature-requestRequest for new features or functionalitysearchSearch widget and operation issues
Activity
BillDenton commentedon Jan 18, 2017
I've got a similar problem in single file search (Ctrl+F). I want to completely remove a string. So I leaving the replace box empty, and press either of the replace button (current one or all). Nothing happened. This is using the insiders build. I'll raise another issue.
BillDenton commentedon Jan 18, 2017
Just checked the release build (1.8.1) and it works.
BillDenton commentedon Jan 18, 2017
I've added another issue (#18711) for the single file search issue.
sandy081 commentedon Feb 27, 2017
This needs Multi-line search support #13155
roblourens commentedon Sep 22, 2018
This would come with #13155