GLBasic forum

Feature request => IDE/Syntax => Topic started by: FutureCow on 2010-Jan-06

Title: Replace in files
Post by: FutureCow on 2010-Jan-06
The ability to "Replace in files" (as opposed to "Find in files") would be really handy.
Title: Re: Replace in files
Post by: Slydog on 2010-May-18
Second that.
Spent 15 minutes trying to find out how.

Either:
'Find / Replace in Open Files'
and / or ideally (so you don't have to remember what files use what variables!):
'Find / Replace in Project'
Title: Re: Replace in files
Post by: Schranz0r on 2010-May-18
In the future you can write your own IDE :)
:nana:
Title: Re: Replace in files
Post by: Moru on 2010-May-18
This function could be coded in GLBasic, that way you get it just the way you want it :-)
Title: Re: Replace in files
Post by: Kitty Hello on 2010-May-19
Do you get the files in a project in a macro? If not, I could add that. I just don't know how to iterate such a list. Anyone familiar with batch scripting?
Title: Re: Replace in files
Post by: Moru on 2010-May-19
Iterating a list in shell script is possible, I just can't say I understand the syntax for it :-) . It's no PHP foreach()... I had a try at it for the backup-script I posted a while back and got it working.

This seems like a good manual if someone wants to try it:
http://ss64.com/nt/for_f.html
Title: Re: Replace in files
Post by: Moru on 2010-May-19
The IDE supports officially only windows