Use Tab to Auto-Complete Paths at Go To Folder Screen in Mac OS X
Tab key auto-completion is a feature that many command line users are familiar with, particularly those with a unix and linux background. Of course, the Mac OS X command line features tab completion as well, but much lesser known is that the excellent “Go To Folder” screens of the Mac also support tab completion.
Yes, the very same Go To Folder option that lets you jump anywhere in the OS X file system in a jiffy, also allows for you to start typing out a directory path and use the tab key to finish writing it for you.
This is best tested out yourself to understand how it works, particularly if you’re less familiar with Tab completion functionality. To try out tab completion in Go To Folder just do the following:
- Open the Go To Folder (Command+Shift+G in Finder) window and start typing the path to a folder, like ~/Library/Pre
- Stop there, then hit the tab key to complete the rest of “Pre” with “Preferences” – that’s tab completion!
You must type out a folder or directory prefix to use the tab key to complete the folder path, so for example /e for tab completing to /etc/ or ~/Ap for tab completing to ~/Applications/
This is extremely useful when you are accessing lengthy paths in your filesystem.
Auto-completion should be familiar to anyone with a unix background, since it is regularly used within the command line interface. It works basically the exact same way here, and is supported in nearly all versions of OS X regardless of origin date.
You can use the tab key to autocomplete any path in the Finder Go To Folder window, so whether you’re trying to navigate to a local user directory, or some deeply embedded path in the file system, tab it out!