-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Regex replace with New-line (\n) or Tab (\t) #8093
Comments
Reviewed medium priority to me. |
The 2nd issue listed by @fibric is a duplicate of 'Find/Replace: Allow matching across newlines (\n or multiline regex) on Brackets' on our feature backlog. See the workaround there for how to include newlines in your search query. There's no easy way to include newlines (or \t) in your replacement text, though (@gmaggio's original bug report). That would actually be simpler to fix, so it makes sense to leave this bug open to track that half. |
@peterflynn thx for noting! |
Has there been any more work on this issue? I'm trying to choose an editor for my students to use and the ability to search/replace across multiple lines is a make-or-break deal for me. Any workarounds? |
@brentonstrine brackets still can't do that. try atom or sublime text instead. |
@fibric I actually came to Brackets because sublime was too expensive for students and Atom is too buggy (I get error messages and crashes constantly). The search/replace functionality on Atom is not very good right now, but it's better than Brackets at this point. It seems pretty inexcusable for a text editor to have terrible search/replace when it comes to multiple lines or multiple files. |
Cool looking project, definitely not ready for beginners yet though. I'll follow it with interest, thanks. |
+1 |
There is a PR #11614 |
Any updates ? |
I need to replace a deliminator with a line break! lets get this going! |
+1 |
2 similar comments
+1 |
+1 |
+1 |
1 similar comment
+1 |
"grep" it is |
+1 |
3 similar comments
+1 |
+1 |
+1 |
Can I ask why it's so difficult to get this issue fixed? |
Nothing happened with this bug? I need to search another editor. Sorry Brackets! |
Looks like project out of supporting. What a shame, for this program alternative only 'sed'. |
Uninstall('Brackets'); |
Seriously guys? This still isn't fixed? |
Using VSCode now. Sorry Brackets devs, you royally fucked up. Even though you're backed by a huge software maker. |
Changing to Sublime text - issue is almost freaking 5 years old |
Are you kidding me? This is a 5 year old unresolved issue? |
This is pretty basic. Leaving Brackets for an editor that works better..... |
I also uninstalled brackets on mac, I installed VS Code instead. You can replace with /n with regex search. |
how in the world is this still an outstanding issue? |
5 years now, wow |
This is a serious request for Mac users which are working with larger text files for formating/parsing |
Bye bye brackets |
It should be noted that escapable chars in general should be considered where possible (like \r or rarer chars). |
Welcome to 2020. I was loving this over Sublime Text until I tried to do a mass replace for line breaks... How is this not a thing?! |
Moving from Brackets back to Visual Studio Code... This issue is 6 years old. |
I really loved Brackets.. had to uninstall this just because this feature is not present :( |
I tried Brackets because it was recommended as an alternative to Notepad++ on the Mac, specifically because I needed to find and replace a string with an added newline. Brackets is not an alternative to Notepad++ without this feature. I am uninstalling Brackets now. Installing it was a waste of time. Sorry to go. |
There is a really easy way to do this in Brackets that I don't see mentioned here. Use "Find and select" in the "Find" menu to find whatever your delimiter is. Then you'll have all of them selected at once, so just press enter to replace them all with a newline. Then just press escape to exit multi-cursor mode and go back to normal editing. |
@pabrown1975... Yes, that will work in that one specific instance. But the lacking functionality that the rest of us are complaining about is that a newline '\n' cannot be included as part of the 'Find' string. I need to match a string including a newline and replace it with a string that may or may not also include a newline, like I could in Notepad++ in Windows. I have moved on to Sublime Text on the Mac. Works fine. |
Seems related to #5499 Strange how you cannot replace the text "\n" or "\n\t" with actual carriage returns or tab characters. |
After 6 years, please, change this issue to high priority. |
6 long years, and this issue is still lying there.. |
I recommend the editor with the name "sublime"
…On Wed, Nov 4, 2020, 10:48 PM raghubedi2004 ***@***.***> wrote:
6 long years, and this issue is still lying there..
Unbelievable !!
This is definitly a deal breaker for me. Need to find an alternative to
Brackets now..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#8093 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOBXGBVKU5DMY2FCOESRKDSOIVCJANCNFSM4AQKTIRQ>
.
|
This issue still exists now in 2021. It is impossible to use a regex replacement and have the replace be a newline, as given in the example at the top of this thread. Is there a particular reason this issue is difficult to tackle? Why would a newline be different from any other character in a text file? |
Sad to see this limitation :( |
On September 1, 2021, Adobe will end support for Brackets. If you would like to continue using, maintaining, and improving Brackets, you may fork the project on GitHub. Through Adobe’s partnership with Microsoft, we encourage users to migrate to Visual Studio Code, Microsoft’s free code editor built on open source. (http://brackets.io/) |
Cannot regex replace with new-line (
\n
) or tab (\t
).Example:
Search:
,
Replace with:
\n\t$&
The text was updated successfully, but these errors were encountered: