Jump to content

Creating a Navigation Alias


Recommended Posts

I'd like to create a text triggered short-cut to go to a folder within Alfred, so that if I enter "/MyTrigger" into Alfred, it's the same as typing "/Users/Me/Documents/My Triggered Folder." I don't want to set a hot-key since I'd be navigating within that folder. E.g., I might enter "/MyTrigger/File I Want" or "MyTrigger/Sub Folder."

 

Is this possible?

 

 

Link to comment

You don't need to do that.

Just use the Alfred hotkey to bring up the search bar then enter the folder name you wish to go to.

You may have some photos in the dredges folder

eg users/yourname/myoldfiles/pictures/historic/dredges

 

Just type dredges and Alfred will take you there

Link to comment

I'd like to create a text triggered short-cut to go to a folder within Alfred, so that if I enter "/MyTrigger" into Alfred, it's the same as typing "/Users/Me/Documents/My Triggered Folder." I don't want to set a hot-key since I'd be navigating within that folder. E.g., I might enter "/MyTrigger/File I Want" or "MyTrigger/Sub Folder."

 

Is this possible?

 

A few notes in addition to Colin's advice:

Go to Alfred's Default Results and check the box to include folders in your default results. I don't recommend adding documents or other file types, but folders can be pretty useful

 

Type the name of your folder (e.g. "dredges") into Alfred and press the right arrow to show the File Actions. The top one should be "Browse in Alfred", so press the right arrow a second time to navigate into it. You can then type the beginning of a sub-folder's name to narrow down the results and right-arrow into that sub-folder :)

Link to comment

FWIW, a shortcut (no File Action necessary) to browsing a specific folder in Alfred can be had by attaching an AppleScript to a keyword or hotkey (or whatever).

If you start an Alfred query with "/" or "~" (which means "my home directory"), and as long as the provided query is a valid path, Alfred goes into Browse mode.

So, to browse /Users/Me/Documents/My Triggered Folder you could attach your keyword/hotkey to the following AppleScript:

tell application "Alfred 2" to search "~/Documents/My Triggered Folder"
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...