Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Done Save the command line erased by Esc

May
12,957
172
This bites me occasionally and just did (twice!) ... mistakenly pressing Esc while composing a long and complicated command. I have to type it all over again.

Could it be automatically saved when it's erased and re-entered (appended to a command line in progress) via a keystroke?

Does a plugin keyhandler see Esc? If so I could probably do it myself.
 
I use the Alt-C key combination from the EditKeys Plugin.
Code:
Alt-C: Copy Line

Copies the current command line to the clipboard. 
The entire command line is copied; 
there is no need to highlight or select text first.

If the command line is empty, nothing happens. 
The clipboard is not emptied.

The plugin will chime to let you know that the copy succeeded. 
You can change or disable the chime with EDITKEYS /C:n.

Alt-C is the default hotkey for this action, 
but you can change it with EDITKEYS /K8:key.

Ref: Index of /dl

Joe
 
TCC has had Undo / Redo support since v15.

[Grrr!] I wish I knew that. [I must have read it once upon a time.] Even if I had remembered it, I might not have thought of using it in the case of Esc. So ... a very belated Thanks! for that. I wouldn't bet on my remembering it the next time I need it.
 

Similar threads

Back
Top