|
#1
| |||
| |||
| Tip: Drag and Drop text in Terminal
I happened across a nifty shortcut today while using the terminal. If you would like to copy and past a filename from one place in the terminal into the command line, rather than selecting the text and using copy/paste, you can select the text and grab it and drag it just a little ways down in the window, about one or 2 lines is all it takes and the selected text will be inserted at the command line. This action is very similar to dragging a file from the finder into the terminal window which fills in the file path. This also works for copying text from one terminal to another. |
|
#2
| ||||
| ||||
|
Yes. And if you drag a file or folder into a terminal window it will print the full path to it where the cursor is. And you can drag highlighted text outside of the terminal windows into other things, like a URL into your browser, into a text clipping on the desktop, etc. Very handy.
|
|
#3
| ||||
| ||||
|
And.... Pressing Command-Shift-V in the Terminal will copy and paste whatever text is currently selected without polluting the clipboard.
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can't drag and drop anything... | retrotron | Mac OS X System & Mac Software | 19 | September 10th, 2003 02:03 AM |
| Drag and Drop Shell Script | macxonly | Software Programming & Web Scripting | 1 | May 17th, 2003 08:11 AM |
| I lost Drag and Drop | jkohler22 | Mac OS X System & Mac Software | 3 | January 2nd, 2003 12:42 PM |
| drag & drop breaks (jag) | scaryfish | Mac OS X System & Mac Software | 5 | October 13th, 2002 06:16 PM |
| Can't drag & drop bookmarks out of IE | mfuse | Mac OS X System & Mac Software | 6 | February 23rd, 2002 04:30 AM |