3 Comments
May 7, 2020Liked by Colin Bartlett

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!

Expand full comment
author

That control-t is a great tip, thanks! I should really make the effort to learn more emacs bindings since readline is so ubiquitous.

Expand full comment

Love this!

Expand full comment