Page 1 of 1

Save and Quit in one keystroke? (Using as external editor)

Posted: Wed Dec 10, 2003 6:20 pm
by EricDB
I'm using TextPad as an external editor for another application. The application makes a temporary file, then opens that temp file within TextPad. Then I edit the file, and when TextPad closes, the focus goes back to the original application.

I want to hit Control-W from within TextPad, to save the file and close down TextPad so that I go back to the original application in one keystroke. Is there a way to set this up?

Thanks

Posted: Wed Dec 10, 2003 6:47 pm
by talleyrand
Looks like you have a few options

Preferences, Keyboard
Categories: File
Commands: FileSaveAndClose
However that'll still leave TP running

Preferences, Keyboard
Categories: File
Commands: FileExit
However that'll bring up the prompt to save, which may or may not be what you want.

I suppose a macro might handle both actions but I'm not sure---mostly on the closing TP part.

By the way, using ctrl-W will overwrite the default of WordRight

Posted: Wed Dec 10, 2003 7:49 pm
by EricDB
Yeah, I tried both of those options and they're not exactly what I need, for the reasons you mentioned. And I didn't even know ctrl-W was word-right until I went to overwrite it--I have always used ctrl-rightarrow.

Currently I'm using the FileExit method, and I can just tap spacebar to say "yes, save". Unfortunately, if I haven't made any changes, I end up hitting spacebar by reflex anyway, and passing it on to the main application, which can be troublesome.

Posted: Wed Dec 10, 2003 8:03 pm
by talleyrand
Ah, ctrl-B and ctrl-W are the initial reasons I fell in love with TP. Coming from a vi world, b and w previous and next word so when I happened to hit ^B in a document and it jumped back a word I was sold.

Posted: Thu Jan 01, 2004 11:06 pm
by tcebob
I use TP in Autocad; same situation. When I finish my edit I simply hit the X button, which brings up the save/don't save box and I hit save. 2 strokes, to be sure, but really easy.

rs