atom / find-and-replace

Find and replace in a single buffer and in the project
MIT License
242 stars 197 forks source link

Multi-line find and replace in project #398

Open solomonkinard opened 9 years ago

solomonkinard commented 9 years ago

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 commented 9 years ago

Is this for buffer find or project find?

solomonkinard commented 9 years ago

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

NathanRSmith commented 9 years ago

I would like to see this as well. Thanks.

ChrisDavison commented 9 years ago

+1

dschwen commented 9 years ago

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

yoyurec commented 9 years ago

+1 for \n

dlewand691 commented 9 years ago

+++++++1111111 Have to jump back to Sublime to do multiline find/replace across projects. LAME!

varemenos commented 9 years ago

:+1:

ashtonsix commented 9 years ago

+1

TW80000 commented 9 years ago

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 commented 9 years ago

+1.

Related: https://discuss.atom.io/t/multi-line-find-and-replace/10222

johnjelinek commented 9 years ago

:+1:

reduardo7 commented 9 years ago

+1

tlrobinson commented 9 years ago

:+1:

borisschapira commented 9 years ago

:+1:

leberblock commented 9 years ago

+1

krasnovpro commented 9 years ago

:+1:

colin-kiegel commented 9 years ago

+1

Ehres commented 9 years ago

+1

pabloab commented 8 years ago

+1

guanghao479 commented 8 years ago

+1

koltejas commented 8 years ago

+1

phnah commented 8 years ago

+1

vincentorback commented 8 years ago

:+1:

hellpf commented 8 years ago

+1

entr commented 8 years ago

+1 Just please, never consider releasing another version without such a basic functionality. Sometimes I really struggle to truly embrace atom as the one editor to go with.

pashast commented 8 years ago

+1

co2-git commented 8 years ago

+1

samirfor commented 8 years ago

+1

swrobel commented 8 years ago

:+1:

kirtangajjar commented 8 years ago

+1

ninja- commented 8 years ago

+1

octoxan commented 8 years ago

+1

idris commented 8 years ago

:+1:

artursopelnik commented 8 years ago

+1

ada-lovecraft commented 8 years ago

+1

stephenjang commented 8 years ago

+1

awilhelmer commented 8 years ago

+1

AndersDJohnson commented 8 years ago

+1

andreasklinger commented 8 years ago

adding +1 - not sure if effective though ;) ;(

bsingr commented 8 years ago

+1

laurel commented 8 years ago

:+1:

juni0r commented 8 years ago

:+1:

jpsantos7 commented 8 years ago

+1

Pierrotws commented 8 years ago

+1

tomkur commented 8 years ago

+1

justcfx2u commented 8 years ago

+1

jaredcat commented 8 years ago

+1

johnwalshuk commented 8 years ago

+1

sainthardawa commented 8 years ago

+1