Can I do a search and replace in TC?
Moderators: white, Hacker, petermad, Stefan2
Can I do a search and replace in TC?
The new RegEx search is really cool . Now, I'm wondering if I can do a regEx search and replace for text file in TC?
THanks,
Yu
THanks,
Yu
- ghisler(Author)
- Site Admin
- Posts: 48124
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
No, it's too risky without seeing the actual document - this should be done with an editor. Some multiple document editors allow search+replace across documents.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I find this a seriously lacking feature actually ... Don't really care for Reg Exp search & replace but basic Search & Replace would be more than usefull...
Ok you can do this in other editors, I for example use the search & replace in Dreamweaver itself for replacing code in my html/asp pages.... But for example at this moment I will have hours of work because I cannot search & replace a selection of files who were feeded to the listbox through a search.... Got to go directory through directory and select file per file and do a lot of search & replaces...
I rather would like that you have an option to activate this feature and thus let us decide if it is too risky....
Ok you can do this in other editors, I for example use the search & replace in Dreamweaver itself for replacing code in my html/asp pages.... But for example at this moment I will have hours of work because I cannot search & replace a selection of files who were feeded to the listbox through a search.... Got to go directory through directory and select file per file and do a lot of search & replaces...
I rather would like that you have an option to activate this feature and thus let us decide if it is too risky....
- sqa_wizard
- Power Member
- Posts: 3864
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
Hi all,
I would also like to request a search and replace tool to be added to the search options. Perhaps similar to Ultraedit's implementation?
Until that time comes, I'll continue to use BK Replacem (free search and replace program) available at http://www.boolean.ca/replace/
Hope this helps those in need.
Dave
I would also like to request a search and replace tool to be added to the search options. Perhaps similar to Ultraedit's implementation?
Until that time comes, I'll continue to use BK Replacem (free search and replace program) available at http://www.boolean.ca/replace/
Hope this helps those in need.
Dave
Agree 100%
>>>TwEed
¤ I agree 100%! It's tedious to copy files in an editor to handle this!
¤ The most TC-users arn't kids, I guess...
* Personally, I'm a 61-years-old kid!
Best regards, cordialement,
Claude
Clo
Hello, Bonsoir,"Don't really care for Reg Exp search & replace but basic Search & Replace would be more than usefull... "
¤ I agree 100%! It's tedious to copy files in an editor to handle this!
I support this opinion too!"I rather would like that you have an option to activate this feature and thus let us decide if it is too risky...."
¤ The most TC-users arn't kids, I guess...
* Personally, I'm a 61-years-old kid!
Best regards, cordialement,
Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Just to note, none of us faces any legal charges in case something goes wrong and a user enjoying the qualities of the US judicial system decides to sue Christian because he didn't know what he was doing when checking this or that checkbox and accidentally replacing his whole year's work by "TestingTheSearch&ReplaceFunction".
There are more ways to see a problem and Christian's position.
Roman
There are more ways to see a problem and Christian's position.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Not wrong, but---
Hi Roman!Hacker wrote:Just to note, none of us faces any legal charges in case something goes wrong and a user enjoying the qualities of the US judicial system decides to sue Christian because he didn't know what he was doing when checking this or that checkbox and accidentally replacing his whole year's work by "TestingTheSearch&ReplaceFunction".
There are more ways to see a problem and Christian's position.
Roman
¤ You arn't wrong, but following this point of view, all authors of editors risk the wrath of Justice!
¤ Many use the Delphi™ "Search & Replace" feature; I don't guess that managers of this programming soft be in Courts six months a year...
In the TC Help, there are warnings enough; and just a good balanced amount of warning messages in the program. Thank God, not a lot of :
"Are you sure to...blah blah...?".
I hate this style, which does to think that the user (you, me...) is a moron! I much prefer:
"Do you want for ...blah blah... really?". It's so different, and could be saw in favour of the author in a trial...
* I translate always the first style into the second, it's more prudent!
- To be sure is only a feeling,
- to want for something really is a will!
So, a Court can judge who is really liable for an important damage... Besides, I noticed that MS uses now this style (in French XP versions); isn't amazing, since they have a lot of lawsuits "on their backs"!
It'ld need several pages to tell you what occurs in France for such a case:
in brief, any "Disclaimer of warranty" valants "a pack of peanuts"!
Don't worry, our jails are not filled with authors of softs!
Friendly regards, and:
HAPPY NEW YEAR!
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
I still think that this feature would be extremely useful for developers! Christian, maybe you can make a warning window and enable the replacing only for files that are identified as plain "TEXT". Or only for types of files that the user itself puts into some textbox in the configuration ("enable S/R for the following types: _________ Caution: this can severly damage your files!")
I can't recall the number of times I was desperately in need of such option! (especially in the days of old fairly simple editors...)
I can't recall the number of times I was desperately in need of such option! (especially in the days of old fairly simple editors...)
-
- Junior Member
- Posts: 62
- Joined: 2003-04-11, 07:46 UTC
- Location: Denmark
Now, I'm wondering if I can do a regEx search and replace for text file in TC?
Hi, you can use an editor like UltraEdit ( http://www.idmcomp.com/ ). Like TC I consider UE as an must have utility
Best regards
Lars
Lars
Other for classic...
Hello!
For a classic "Search and replace", one can use too "TxtEdit" (Swiss...), multilingual :
http://www.luziusschneider.com
Luzius is a TC user. I think to contact him to ask for new start-parameters, allowing a "Search and replace" from TC directly (button in the bar or so...).
¤ This function is so securised in TxtEdit. There are extra confirmation-messages...
¤ I'll ask for he adds RegEx Search/Replace, not supported currently (if possible).
EDIT: Luzius answered me for a part:
You can already lauch TxtEdit for the current file, adding the parameter %N at its button-setting...
The licence of TxtEdit is friendly...
Best regards,
Clo
For a classic "Search and replace", one can use too "TxtEdit" (Swiss...), multilingual :
http://www.luziusschneider.com
Luzius is a TC user. I think to contact him to ask for new start-parameters, allowing a "Search and replace" from TC directly (button in the bar or so...).
¤ This function is so securised in TxtEdit. There are extra confirmation-messages...
¤ I'll ask for he adds RegEx Search/Replace, not supported currently (if possible).
EDIT: Luzius answered me for a part:
You can already lauch TxtEdit for the current file, adding the parameter %N at its button-setting...
The licence of TxtEdit is friendly...
Best regards,
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
When I use UE I cant see the files content either... if that was true search/replace would only be sensible on that part of a file you can actually see on your screen.ghisler(Author) wrote:No, it's too risky without seeing the actual document - this should be done with an editor. Some multiple document editors allow search+replace across documents.
But I have to say in most cases where I use s/r I make sure the reg.ex. works and say 'replace all' no matter what kind of tool I use.
In my minde this is a feature lack.
Thanx a lot for the best tool anyway...
amano
If you need decent Search & Replace utilities try these ones, all incredibly powerful:
ReplaceEm (free)
Renamer (free commandline renaming)
Search & Replacers with visual control:
InfoRapid Search & Replace (free)
Agent Ransack (free and pro version available)
Besides that I second the request to include an (at least) basic S&R functionality of course. It should be the users' choice if they want to take the risk, not the author's!.
Just facing a déjà-vu, can someone help me out?
Icfu
ReplaceEm (free)
Renamer (free commandline renaming)
Search & Replacers with visual control:
InfoRapid Search & Replace (free)
Agent Ransack (free and pro version available)
Besides that I second the request to include an (at least) basic S&R functionality of course. It should be the users' choice if they want to take the risk, not the author's!.
Just facing a déjà-vu, can someone help me out?
Icfu
This account is for sale
- pdavit
- Power Member
- Posts: 1529
- Joined: 2003-02-05, 21:41 UTC
- Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
- Contact:
Pure and simple! It's like in real life. You see a sign on an unguarded door saying "Restricted Area". You have the ability to enter, yet if you do so, you should also be willing to face the consequences of your actions!interDist wrote:Christian, maybe you can make a warning window...
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
Christian Ghisler Rules!!!
2-words
2icfu
2pdavit
Hello all !
¤ Two words only I AGREE !
Kind regards,
Claude
Clo
2pdavit
Hello all !
¤ Two words only I AGREE !
Kind regards,
Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials