Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is it possible to have a short cut so I can jump between Textmate and terminal quickly?

I know I can do it via cmd+tab but I still have to find it from the menu bar.

share|improve this question

5 Answers 5

If you're on OS X Lion or later, you can place the two applications on neighboring spaces. Then use gestures to switch between them. I know terminal supports full screen; not sure about TextMate, though.

Make sure you turn off auto-arrangement in the Mission Control preferences, if you wish. This can effect the order of your apps. I find it annoying.

share|improve this answer

There are a couple of ways doing this.

The quickest and easiest is to use Spaces.

Put Textmate on Desktop 4 and Terminal on Desktop 3

Then you can use ctrl-option and either 3 or 4 to switch between the two.

Personally I use Keyboard Maestro for this. I used to use a Service and a keyboard shortcut but a "feature" of the new security system makes it impossible for a Service to use the System Event library unless you turn on accessibility for every app. You need that to select "Bring All to Front".

share|improve this answer

If you use Alfred and have the powerpack, setting up a workflow to switch to a specific application is easy.

  1. Open Alfred's Preferences.
  2. Click the Workflows button.
  3. Add a new, blank workflow using the '+' button at the bottom of the window.
  4. Fill in the Workflow name, for example "Switch to Terminal" and any other info you want and click Save.
  5. Using the round '+' button in the top right corner, add a hotkey from the Triggers menu.
  6. Set the Hotkey to whichever key combination you want to use. Leave the other defaults.
  7. Again using the round '+' button, add an action 'Launch Apps / Files'
  8. Find Terminal in the Finder and drag it into the empty list and click Save
  9. Connect the Hotkey command to the Launch action by moving the mouse pointer over the side of the hotkey and clicking and dragging the small 'knob' that appears over to the launch action.

Do the same for TextMate and you're done, having two shortcuts to switch to the application you want. (Yes, the action says launch, but if an app is already open Alfred will switch to it instead.)

share|improve this answer

I use iTerm2 for this. It can be configured to open and close a terminal window using a hotkey.

My setup is such that tapping Ctrl twice brings up a full-screen terminal window with slightly transparent background, so that I can see what's behind it. Tapping Ctrl twice again hides the window.

share|improve this answer

I currently use KeyRemap4MacBook to assign shortcuts to applications. For example this private.xml would make F7 open iTerm and control-option-command-M open TextMate:

<?xml version="1.0"?>
<root>
  <vkopenurldef><name>KeyCode::VK_OPEN_URL_ITERM</name><url>file:///Applications/iTerm.app</url></vkopenurldef>
  <vkopenurldef><name>KeyCode::VK_OPEN_URL_TEXTMATE</name><url>file:///Applications/TextMate.app</url></vkopenurldef>
  <item>
    <name>test</name>
    <identifier>test</identifier>
    <autogen>__KeyToKey__ KeyCode::F7 | ModifierFlag::NONE, KeyCode::VK_OPEN_URL_ITERM</autogen>
    <autogen>__KeyToKey__ KeyCode::M, VK_CONTROL | VK_OPTION | VK_COMMAND | ModifierFlag::NONE, KeyCode::VK_OPEN_URL_TEXTMATE</autogen>
 </item>
</root>

If you have bought the Powerpack for Alfred, you can create a workflow like this:

Hotkeys have a short delay by default, but you can reduce it by changing the trigger behavior:

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.