News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Multiline Search & Replace

Started by rickg22, November 08, 2009, 03:03:32 AM

Previous topic - Next topic

MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

gygabyte017

Hi, I really need this patch! Is this patch ready? If so, how to download and add it to my svn build?
Thanks!

oBFusCATed

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!]

Loaden

Quote from: oBFusCATed 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"
cool!

gygabyte017

#34
Quote from: oBFusCATed 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"

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]

rickg22

Question - is this patch applied to head now?

Loaden

Quote from: rickg22 on November 08, 2010, 03:26:25 PM
Question - is this patch applied to head now?
Yes, it's in HEAD now.
:lol:

ironhead

#37
Quote from: Loaden on November 08, 2010, 03:43:25 PM
Quote from: rickg22 on November 08, 2010, 03:26:25 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?

Jenna

In "Replace" or "Replace in files" dialog there is a checkbox "Muliti-line Search -> Enabled" .

rickg22

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