Author Topic: Multiline Search & Replace  (Read 36596 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Multiline Search & Replace
« Reply #30 on: December 01, 2009, 02:44:29 pm »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline gygabyte017

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Multiline Search & Replace
« Reply #31 on: May 08, 2010, 12:12:55 pm »
Hi, I really need this patch! Is this patch ready? If so, how to download and add it to my svn build?
Thanks!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Multiline Search & Replace
« Reply #32 on: May 08, 2010, 01:41:38 pm »
Download the patch:
http://developer.berlios.de/patch/?func=detailpatch&patch_id=2849&group_id=5358

Then:
1. Open a cmd
2. goto the trunk directory
3. patch -p0 < multiline.patch

You'll need the patch utility another option is to use TortoiseSVN and it feature "Apply patch"
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Multiline Search & Replace
« Reply #33 on: May 08, 2010, 01:59:43 pm »
Download the patch:
http://developer.berlios.de/patch/?func=detailpatch&patch_id=2849&group_id=5358

Then:
1. Open a cmd
2. goto the trunk directory
3. patch -p0 < multiline.patch

You'll need the patch utility another option is to use TortoiseSVN and it feature "Apply patch"
cool!

Offline gygabyte017

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Multiline Search & Replace
« Reply #34 on: May 08, 2010, 06:03:18 pm »
Download the patch:
http://developer.berlios.de/patch/?func=detailpatch&patch_id=2849&group_id=5358

Then:
1. Open a cmd
2. goto the trunk directory
3. patch -p0 < multiline.patch

You'll need the patch utility another option is to use TortoiseSVN and it feature "Apply patch"

Thank you! But there are some conflicts in replacedlg.cpp... Indeed, my replacedlg.cpp is at svn revision 6104 (I've updated svn right now), but the patched one is at 5102.... It seems ok for editormanager.cpp, finddlg.cpp, the headers, and the xrc file, even if the patched version is at 5102, but replacedlg.cpp has been edited heavy since 5102...

Is it a way to update the patch?


Edit: I've modified manually the conflicts, and I've rebuilt the code. Compilation is ok, and after few tests everything seems ok, the multiline search and replace works (at least on windows).

So, I've attached the new patch! Please test it to see if everything is ok! This is a great feature...

[attachment deleted by admin]
« Last Edit: May 08, 2010, 07:11:13 pm by gygabyte017 »

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Multiline Search & Replace
« Reply #35 on: November 08, 2010, 03:26:25 pm »
Question - is this patch applied to head now?

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Multiline Search & Replace
« Reply #36 on: November 08, 2010, 03:43:25 pm »
Question - is this patch applied to head now?
Yes, it's in HEAD now.
 :lol:

Offline ironhead

  • Almost regular
  • **
  • Posts: 210
Re: Multiline Search & Replace
« Reply #37 on: November 08, 2010, 07:03:15 pm »
Question - is this patch applied to head now?
Yes, it's in HEAD now.
 :lol:

How do I enable it?  As it stands find / replace in the 6843 build only has a single line for search / replace.

Edit: Never mind, found it.  I didn't realize that it's limited to the 'Replace' dialogue only.  Any chance it could be extended to support 'Search' as well?
« Last Edit: November 08, 2010, 07:05:15 pm by ironhead »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Multiline Search & Replace
« Reply #38 on: November 08, 2010, 07:07:14 pm »
In "Replace" or "Replace in files" dialog there is a checkbox "Muliti-line Search -> Enabled" .

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Multiline Search & Replace
« Reply #39 on: November 09, 2010, 03:24:41 pm »
ironhead: At the time I wrote it (around a year ago), I was desperately needing a multiline replace. Actually I think Code::Blocks is already potentially capable of multiline searching - but we need a GUI to tell it to do so :P