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

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
EricDB
Posts: 2
Joined: Wed Dec 10, 2003 6:14 pm

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

Post 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
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post 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
I choose to fight with a sack of angry cats.
EricDB
Posts: 2
Joined: Wed Dec 10, 2003 6:14 pm

Post 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.
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post 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.
I choose to fight with a sack of angry cats.
User avatar
tcebob
Posts: 80
Joined: Fri Mar 28, 2003 1:20 am

Post 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
Post Reply