adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.26k stars 7.63k forks source link

find and replace multiple lines within the project #11588

Open bananacat2015 opened 9 years ago

bananacat2015 commented 9 years ago

Is it possible to add the possibility to mark multiple lines (e.g. the code of several list-items in html) and replace them with other lines in the whole project? I changed from dreamweaver to brackets and miss this feature...

Thanx

Please let me add a need: really perfect would it be, if you could choose where to find&replace the data... just on that file, on the whole project, in a special folder or in all open documents :-) THANK YOU

bananacat2015 commented 9 years ago

Sorry... is it because of my bad English? Do you understand what i mean?

abose commented 9 years ago

Thanks for raising this issue. Multi line find and replace is not supported for now. But I think the internal infrastructure supports that; So replacing the text box with a text area or so might help- or we need to provide an advanced find and replace feature. This is a new feature request, so we usually wait for some community member to propose a workaround if some of us are not aware of the specific issue. Thus the delay in response :) I have triaged it as a new feature request. This would take a while to get implemented in brackets; however- you could always raise a pull request with the feature and we will review and merge the change :+1:

petetnt commented 9 years ago

@bananacat2015 As a workaround, you can use multi-cursor mode to modify multiple lines at once. It is somewhat more work as you have to manually find the lines you need, but it's quite handy after you get used to it.

bananacat2015 commented 9 years ago

Thanks abose and thank you petetnt for your effort. I am afraid, that I cannot contribute any pull request, because i don't have any ideas how to fix that.

Multi-cursor mode is awesome, but doesn't help me in may case. I need a better replacemant tool for changing html-menus (li-elements) on several subpages... So sometimes e.g. I have to add a new menu-element (li) in between of to already existant li's on every page of the project. I hope this was proper English :-)

bananacat2015 commented 8 years ago

Any word on if there is a chance that this multiple line find/replace will be implemented at all?

Thanks so much.

abose commented 8 years ago

At this point of time we do not have sufficient time to implement this feature. if we get more requets for this feature, we will bump up the priority.

FezVrasta commented 8 years ago

I'd like to get this feature implemented.

I think, as mentioned, an advanced find&replace mode would be awesome. It could be placed inside a new bottom-panel or (it would be awesome) in a new window (like it happens on Notepad++ and almost every code editor), but I think the latter could be a bit difficult due to the limitations of the Brackets Shell.

@abose are you aware of any way to implement this feature as extension? Giving hints to the developers may help them in starting such feature as extension.

bananacat2015 commented 8 years ago

Hi abose, in my opinion this feature is requested very often... If you look to all the questions in stackoverflow or the github-duplicates to this issue (find and replace in multiple lines). I was also looking to an alternative to brackets which contains this feature and recognized, that users are also asking for this feature in other editors like Atom for example... I think you could win a lot of new users with that improvement. In notepad++ have been also big disucussions about that and they solved it with this plugin: https://github.com/phdesign/NppToolBucket

Is there really no way to push bump up the priority? For me and many others this is the last missing step to an perfect editor!!!

THANK YOU

abose commented 8 years ago

sorry for the late response. calling searchAndShowResults in Findinfilesui.js with the required query params should show up the search results. For a sample usage, see src/search/FindInFilesUI.js:startSearch(replaceText)

Zodiase commented 8 years ago

If you still want more requets for this feature, I'll just say that I tried this editor for two minutes or so and dismissed it due to the lack of multiline support in find & replace.

FrancescoBorzi commented 8 years ago

+1

anika-infoobjects commented 8 years ago

This feature is a must have for any editor. I am surprised to find brackets does not support this..

nethip commented 8 years ago

There is a PR raised for this. https://github.com/adobe/brackets/pull/12442

Marcomah commented 7 years ago

Come on guys! I would work on it myself if I knew how to code. I have been waiting for the multiple lines find and replace since this editor came out. Just like bananacat2015 (I share your pain man), I have to open dreamweaver to do multiple lines find & replace project wide... What A Drag!

There must be thousands of other html/css designers out there who like Brackets but wish they could do multiple lines global search and replace.

If not global ( I mean project wide) at least give us the ability to do it for the open documents, or for just one folder.

Pretty please... All my love to you for creating Brackets. 👍

woko-radio commented 7 years ago

I seriously loved brackets when I first installed it, it was so quick and the interface... well. I took only a few minutes until i realized that you can only replace one line at the time, incredibly inconvenient because you usually need to replace a whole script, several links across several files. and it's impossible. I think this is brackets only weakness (huge one) I've been looking for an extension for this issue and had no luck so far.

PS: I've been trying to solve this for three days, I only signed up to git hub to leave this comment. sadly i might just have to go back to dreamweaver

tonybrasunas commented 7 years ago

I too (perhaps one of thousands) need this feature. Yes it is a reason I will still open dreamweaver, although I only have it on one of my machines now. I'm trying to improve my regex fu, and I've pulled off a few pretty sweet replaces, but c'mon this is not an exotic feature request and is a serious drawback to this editor right now.

petetnt commented 7 years ago

@tonybrasunas there's a PR pending for adding the feature in, but the original author sadly doesn't have enough time to finish. If you (or anyone else from the community) would be willing to pick it put, me (and others) would be more than welcome to help you get started on hacking on Brackets.

The pull request can be found at https://github.com/adobe/brackets/pull/12442

talhazahid commented 7 years ago

The only thing I dont like about bracket is they dont have this feature.. sometimes I have to replace a complete div and its a painful process.. I hope to see this feature in future

devdmore commented 7 years ago

As Brackets don't have this Multiline Find and Replace feature yet, I use Dreamweaver for this. Don't know when brackets team, is going to introduce this feature..!! As talhazahid said earlier, it's a really painful process when you have to replace the bunch of code on multiple pages.

jerrybracegit commented 7 years ago

I'll add my voice here too - multi-line find/replace is the only thing keeping this from being the best text editor.

ahao-henrry commented 7 years ago

虽然现在还没有多行匹配的功能,但是能帮我解决一个问题吗,把多行变成一行 default default 就像这样,谢谢。

shikkaba commented 7 years ago

Any news on this?

didiraja commented 7 years ago

shit, not yet?

paulgseo commented 6 years ago

Here's another request for this vital feature.

didiraja commented 6 years ago

Right now, the only option is with RegEx but is totally shitty with large phrases or much indented code.

dsikic commented 6 years ago

Another request for this.

It's easy to implement just add a toggle button next to the existing ones to enable multi line entries in the two text fields. Ideally make them also have a popup mode so larger text is easier to see.

Or don't add the button and instead a little button inside of the text box which once expanded allows for multi-line inputs. If textbox has multiple lines inside of it change it's color, or border color or put a little hamburger menu like icon next to it to signify this to the user.

GaelDelcros commented 6 years ago

Another request for this. We NEEEED this feature!!

petetnt commented 6 years ago

Multiline find and replace is now planned for 1.13: https://github.com/adobe/brackets/issues/14044

mar627 commented 5 years ago

Why was the milestone so short lived 😭

Can we expect it to make a comeback?

didiraja commented 5 years ago

It took so long, I abandoned Brackets for VS Code (who already implemented)

shikkaba commented 5 years ago

Did this ever happen?

devdmore commented 5 years ago

I don't know if this feature is implemented or not. But Pycharm, webstrom and VS code are great competition to bracket.

On Wed 22 May, 2019, 1:55 AM shikkaba, notifications@github.com wrote:

Did this ever happen?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/adobe/brackets/issues/11588?email_source=notifications&email_token=ABSL3J3URMPWG4XL7NEG7PTPWRLB5A5CNFSM4BNOHQX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV5CLLQ#issuecomment-494544302, or mute the thread https://github.com/notifications/unsubscribe-auth/ABSL3JYAH2POK5NB7JRRSM3PWRLB5ANCNFSM4BNOHQXQ .