Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Multi-line find and replace in project #398

Open
solomonkinard opened this issue May 27, 2015 · 55 comments
Open

Multi-line find and replace in project #398

solomonkinard opened this issue May 27, 2015 · 55 comments

Comments

@solomonkinard
Copy link

The ability to find and replace multiple lines would be epic!
#397 is different from #396 because it is requesting multiple rows in both the find and replace fields.
#396 only accounts for the insertion of a newline character in the replace field.

@benogle
Copy link
Contributor

benogle commented May 27, 2015

Is this for buffer find or project find?

@solomonkinard
Copy link
Author

It could be useful in both, so feel free to choose the easiest one to implement (e.g. buffer).

@NathanRSmith

This comment has been minimized.

@ChrisDavison

This comment has been minimized.

@dschwen
Copy link

dschwen commented Jul 8, 2015

This already works in buffer find (with regular expressions containing \n), however it does not seem to work in project find.

@yoyurec

This comment has been minimized.

@dlewand691

This comment has been minimized.

@varemenos

This comment has been minimized.

1 similar comment
@ashtonsix

This comment has been minimized.

@TW80000
Copy link

TW80000 commented Aug 31, 2015

Just a heads up for anyone that might run into the same problems I did:

  1. On Windows newlines are denoted by \r\n, not just \n like on unix-like systems. You'll need this for multi-line regex find expressions.
  2. If you use the $ character in a regex followed by your \n or \r\n, you'll be able to highlight text that matches the regex, but the replace will fail (in my experience). Taking out the $ will allow you to do the replace.

@mik01aj
Copy link

mik01aj commented Sep 1, 2015

@johnjelinek

This comment has been minimized.

13 similar comments
@reduardo7

This comment has been minimized.

@tlrobinson

This comment has been minimized.

@borisschapira

This comment has been minimized.

@leberblock

This comment has been minimized.

@krasnovpro

This comment has been minimized.

@colin-kiegel

This comment has been minimized.

@Ehres

This comment has been minimized.

@pabloab

This comment has been minimized.

@guanghao479

This comment has been minimized.

@koltejas

This comment has been minimized.

@phnah

This comment has been minimized.

@vincentorback

This comment has been minimized.

@hellpf

This comment has been minimized.

@entr

This comment has been minimized.

@pashast

This comment has been minimized.

@samirfor

This comment has been minimized.

10 similar comments
@swrobel

This comment has been minimized.

@kirtangajjar

This comment has been minimized.

@ninja-

This comment has been minimized.

@octoxan

This comment has been minimized.

@idris

This comment has been minimized.

@artursopelnik

This comment has been minimized.

@ada-lovecraft

This comment has been minimized.

@stephenjang

This comment has been minimized.

@awilhelmer

This comment has been minimized.

@AndersDJohnson

This comment has been minimized.

@andreasklinger

This comment has been minimized.

@bsingr

This comment has been minimized.

12 similar comments
@laurel

This comment has been minimized.

@juni0r

This comment has been minimized.

@jpsantos7

This comment has been minimized.

@Pierrotws

This comment has been minimized.

@tomkur

This comment has been minimized.

@justcfx2u

This comment has been minimized.

@jaredcat

This comment has been minimized.

@johnwalshuk

This comment has been minimized.

@sainthardawa

This comment has been minimized.

@philipkocanda

This comment has been minimized.

@gsmetal

This comment has been minimized.

@jrbasso

This comment has been minimized.

@mkov88

This comment has been minimized.

@50Wliu
Copy link
Contributor

50Wliu commented Mar 4, 2016

At this point there isn't any constructive feedback happening, and each +1 notifies 56+ people, so I'm locking this issue. We will comment here as updates occur. As usual, PRs are welcomed for this issue.

@atom atom locked and limited conversation to collaborators Mar 4, 2016
@maxbrunsfeld maxbrunsfeld marked this as a duplicate of #918 Jun 30, 2017
@maxbrunsfeld maxbrunsfeld changed the title Multi-line find and replace Multi-line find and replace in project Jul 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests