Find and Replace Text

Find and Replace Text on all text layers.

Find: text to search for
Replace: text to replace with
Replace All: replace every match [YES/no]
Case Sensitive: match case [YES/no]

The plug-in is found at Edit->Find & ReplaceText...

Tested on Ubuntu 8.10, GIMP 2.7 (SVN).

Could use some further testing, esp. on other platforms.
Matching is done using Python's re.sub function - so special character should work (\n, *, +, etc.).

TODO:

- add option to only replace on current layer
- add a pop-up to report the number of changes made (re.subn())

No votes yet
AttachmentSize
find_and_replace-0.1.py1.41 KB

Comments

where do I put find_and_replace-0.1.py

Please, can you tell me where I must put find_and_replace-0.1.py ?

Thanks!

The folder is different depending on your OS, but

You can find out what folder to put plugins into by opening Gimp and going to Edit > Preferences > Folders > Plug-Ins. I think any folder listed there will do.

I can't find it....

Okay, I've put it in the plug-ins , "

The OS is Windows XP
Gimp 2.6 has been installed in H:\
I've put it in the plug-ins both in H:\Gimp\......plugins and C:\Gimp\....plugins

but I can't find it:

"The plug-in is found at Edit->Find & ReplaceText... "

Any idea again?
Thank you very much again

Do you have gimp-python

Do you have gimp-python installed? You can check by going to Filters->Python-Fu->Console.

If you do have Python, try looking in Help->Plug-In Browser.

I normally work in linux, but I'll see ifI can install it in XP also...

gimp-python

sure you may install python support for Gimp in xp
But this pack ,and the info included will made it easier

http://www.registry.gimp.org/node/3916

You may even found more updated version of the libraries included, but if you do you should check (basically by trial and error)that are all compatible each other (in case you will do, let me know your result please )

Anyway to avoid you loosing time

1 Last version of Python is NOT compatible
2 install in the correct sequence
2 in case something go wrong , try again but reloading the PC after install PY and ,at the end, before reinstalling gimp ,usually that simple trick solve

3 a nuisance, at the very end you need to reinstall gimp, this time choosing the CUSTOM option, and there checking python box
(if you do not see the option for py, then something went wrong with the install of at least 1 of the libraries...)

Thanks

Got pulled away on another project I will give your plugin a try...