Page 1 of 1

Rename Document without having to save

Posted: Fri Feb 12, 2010 7:41 pm
by kaheidt
Hi! First post here, so let me say that I love Textpad, I think it's a great tool that I use to accomplish lots of different tasks.

I use textpad as sort of a bulk data manipulator or even as a temporary scratch pad because it allows me organize different temporary information that I may need to copy and paste multiple times. So about 75% of the time that I'm using Textpad, I'm using a document that never actually gets saved to a file. So it would be nice to be able to rename the document, or I guess in this case rename the tab, from the default "Document#" to something more meaningful. Right now the only way I can do this is to save the document with the name that I want, which I end up having remember to delete later on or else I have a lot of file clutter. Just a thought. Thanks!

Posted: Fri Feb 12, 2010 8:57 pm
by Bob Hansen
Does File/Rename not work for you?

Posted: Fri Feb 12, 2010 9:43 pm
by ben_josephs
No. TextPad will not let you rename an unsaved unnamed document.

Posted: Fri Feb 12, 2010 9:47 pm
by kaheidt
I'd be happy with either the ability to rename an unsaved document on the fly, or have a prompt or something come up when creating a new file that asks me for a filename that defaults to "Document #" like it does now. I'm not picky :)

Posted: Fri Feb 12, 2010 10:08 pm
by Bob Hansen
Could this be used as a work around?

You could use a naming convention like ~temp_1.txt, ~temp_2.txt, etc.

Than make a batch file that deletes all files named ~temp_*.txt. Call the batch file with a tool added to the tools menu.

So, you work with your files, give them quick SaveAs ~temp_n.txt. When all done, run the tool to delete the temp files.

Or you can modifiy the shortcut that starts TextPad to start with a batch file, and put the delete command in the batch file to run when TextPad closes.

Posted: Tue Feb 16, 2010 4:23 pm
by kaheidt
Both good suggestions. I'm actually doing something similar right now. Not quite as one-step as your suggestions, but it uses a batch file. It's not something that is a major enhancement request that would make or break whether I use Textpad or not. It's just a minor suggestion that I thought I'd toss out in the enhancement suggestions area. Thanks for the work around ideas :)