Command Line Tip: Position Cursor with the Mouse

command line tip - place your cursor with the mouse
Place your cursor with the mouse

When entering long commands in the terminal, making changes or fixing mistakes in the middle of the command can slow you down. Moving your cursor over one character at a time to get the to point where the change is needed takes too much time! Fortunately on a Mac you can actually use your mouse to position the cursor wherever you want in the current line.

The trick is to hold down the ‘Option’ key while clicking. Move your mouse pointer where you want the cursor and ‘Option-Click’. When doing this the cursor will actually move to that point in the line. I didn’t believe it until I tried it. It really works! Another command line time saver.

Copy and Paste Without Formatting in Chrome

Google Chrome Logo
Copy – Paste Relief!

For people who work extensively on the web, copying and pasting can be a huge pain; not because the act of copying and pasting itself is a difficult tasks but because when you copy some text from a web page, the formatting of that text will tag along. Normally you just want the content in plain text. People often end up copying the content into a word processor like Textmate or Notepad and then re-copying and re-pasting. What a hassle!

Well, there is a handy built-in shortcut in Google Chrome (my choice for best browser) that automatically removes formatting when you paste. Yay! If you are on a Mac, the shortcut is ‘Command-Option-Shift-v’ and if you are on Windows it is ‘Control-Shift-v’.

The 4 key shortcut on Mac is a bit of a ‘handful’ but it is well worth it.