Jump to content
London

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?

 

 

Share this post


Link to post

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

Share this post


Link to post

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 :)

Share this post


Link to post

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"

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...