Nice one, it's kinda like internalizing `ddp` for swapping 2 lines! To add on, your terminal/shell usually uses Emacs-style bindings, and invoking Ctrl-t will swap the characters on the left of the cursor with the right. For macOS users, Emacs-style bindings is OS-wide, so you can use Ctrl-t anywhere!
Nice one, it's kinda like internalizing `ddp` for swapping 2 lines! To add on, your terminal/shell usually uses Emacs-style bindings, and invoking Ctrl-t will swap the characters on the left of the cursor with the right. For macOS users, Emacs-style bindings is OS-wide, so you can use Ctrl-t anywhere!
That control-t is a great tip, thanks! I should really make the effort to learn more emacs bindings since readline is so ubiquitous.
Love this!