← #120 Locate an element with a given selector

Move the cursor to any position in a macOS command

Topics: Command Line, macOS

We often use the arrow keys to move the cursor when editing the parameters of a command.

Imagine that the target position is somewhere in the middle of the command. Pressing the arrow keys multiple times takes time, and isn't a comfortable process.

Fortunately, there is a shortcut that makes the flow easier. We just simply hold the alt key, and click the mouse at the destination position.

The following video demonstrates how I fix a typo in a command using this tip.

Fix a typo or suggest an improvement
#122 Copy the base64 data of an image