Saturday, May 5, 2007

Terminal.app: Selecting Pathnames

I come from a Linux background. In most Linux terminal applications, you can double-click anywhere inside a path such as lib/WCIT/DBA.pm and the entire path is selected and copied to the clipboard. In OS X's Terminal.app, double-clicking anywhere inside a path only selects up to the bracketing / characters. For example, if I double-clicked somewhere inside WCIT, it would only select that word. I found it quite frustrating to have to click and drag to select the entire path. Today, I discovered that you can hold Option while double-clicking to select the entire path. You still have to manually copy the text to the clipboard, but that's not too bad. Apple provides a help document about selecting text in OS X, but it doesn't mention this trick.

0 comments: