Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.

You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.

Subject line says it. I'm looking for a Free Windows Text Editor that transposes last 2 characters typed on Control-t ?? XEmacs is the only one I seem to remember that does it on Windows. But I don't want to suffer through the rest of the learning curve.

Failing that maybe one where you can add a hotkey and custom command easily?That's the most common typo for me and I can't believe it's not a standard feature like deleting a line.

edit: I know the editor in Visual Studio 2008 does it, but I don't want to wait 3 minutes for it to open. Looking for something like EditPad Lite or NotePad++ but with Control-t transpose function.

Yeah, but then I'd have to decide if I should pass it through or eat the key. Control T is a pretty common hotkey that's likely to do something else in an editor. I don't know why more editors don't have transpose. Doesn't anyone touch type?

edit: plus I think the method would end up being pretty sloppy. Send keys, copy to clipboard, etc.. which is likely to interfere with the clipboard likely to be in use by the editor. It would be smoother all around if the function was built in.

If transposing the last two letters of a word only happens in your text editor, then by all means write a Control-T macro for that editor. I use Boxer and Word and it would be easy to write a macro for either.

But if it happens elsewhere, I'd still think about a system-wide macro. If Control-t is too general, pick something more obscure (Shift-Ctrl-1, Ctrl-Alt-q).

If the cursor is already at the end of the word, seems like the code would be a simple SelectOneCharacterToLeft,Cut,CursorLeft,Paste - only four keys to send: ShiftCursorLeft/Ctrl-x/CursorLeft/Ctrl-v . This should work regardless of which clipboard is used (system or editor) if the editor uses Ctrl-x and Ctrl-v to cut and paste using it's internal clipboard (Boxer does this).

I take your point about bumping whatever was originally in the clipboard. I use a clipboard manager with quick hotkeys to jump to an earlier clip.

Or if you already have a text editor you like, write an autohotkey script that is only active when that editor has focus. You'd still overwrite the current clipboard contents but you wouldn't have to worry about a Ctrl-t conflict.

The above snippet should work anywhere to swap the last two typed characters without using the clipboard. Alternately, you could easily restrict it down to only certain applications. Obviously, minimal testing has been done with this but it seems to work pretty well.

Looking around on ahk forum I saw that I was overly concerned about the clipboard when doing a hotkey for transposing characters. Using the clipboard has the advantage that I can move the caret, then later come back and fix a transpose typo. This implementation is just a minimal macro. It will not work correctly unless there are at least 2 characters to the left of the caret when you hit the hotkey. If the caret is at the start of a line or to the right of the first character, the macro will just end up eating a character. Also the app taking the input must be in Insert Mode. Still, I get quite a bit of use out of it. Anytime I want to add an app I just check that the app doesn't use ^t itself, then add its class name to the list for the window group.