File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes TextPad and file extensions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "TextPad and file extensions" Watch "TextPad and file extensions" New topic

TextPad and file extensions

Frank Carver

Joined: Jan 07, 1999
Posts: 6920
I know we have a few TextPad users here, so maybe someone can help me. Most of the time, I like TextPad - it's straightforward and it does the job. However, there's one thing that really irritates me; It just won't keep its hands off my file extensions!
A lot of the files I edit are of types known to TextPad (*.c, *.java. *.txt. *.html etc), and these work fine. But when I need to create a file of a different type, or even just with a different file extension, TextPad stubbornly adds '.txt'. SO I have to go in and change "ugh.cxx.txt" to "ugh.cxx", "adduser.tpl.txt" to "adduser.tpl", "report.xml.txt" to "report.xml", "showdetails.cgi.txt" to "showdetails.cgi" and so on.
So the question is: How do I tell TextPad to **** off and leave my filenames alone. I want it to save the file as the name I enter for it, not some other stupid name.
Any suggestions? I'll take suggestions for an equivalent editor which does this right, but I'd prefer a fix for TextPad if there is one ...
Many thanks in advance.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Graeme Brown
Ranch Hand

Joined: Oct 13, 2000
Posts: 193
Hi Frank
In the save dialog box, make sure "Save as type" is set to All files (*.*) and explicitly put your file extension on the file name.
I am using Textpad 4.4.0 and this works for me.
Peter Tran

Joined: Jan 02, 2001
Posts: 783
You can do as Graeme advised or remove your default extension to txt. It's under the menu Configure->Preferences...File. I put a blank under the "Default file extension" field.
I'm using TextPad v4.3.2. Let me know if this helps.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
A big D'Oh! and slap-on forehead. Setting an empty "default file extension" did the trick.
Many thanks guys, that's a big decrease in my stress levels, and all thanks to the helpful folks at JavaRanch
I agree. Here's the link:
subject: TextPad and file extensions
It's not a secret anymore!