ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

term​X

by afterdesign OS X ST2/ST3

MacTerminal is a SublimeText plugin. It opens new Terminal tab (on current or new window if necessary). It's working with Terminal and iTerm.

Labels terminal

Details

Installs

  • Total 24K
  • Win 17
  • OS X 24K
  • Linux 5
Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 3 1 3 1 0 1 2 3 2 3 1 0 0 2 4 2 0 1 1 1 2 1 1 2 4 3 1 3 2 0 3 1 2 1 1 0 3 1 0 1 2 6 3 1 4 2
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime Text terminal plugin for macs

  1. Fully packaged
  2. Currently with option to open new tab
  3. Sublime Text 2 and 3

Installation

From git:

cd $PATH_OF_SUBLIME_PACKAGES
git clone git://github.com/afterdesign/termX.git

From package control

Just type termX

Keybinding

Default keybinding is:

ctrl+cmd+t

To change it go to:

Sublime Text 2 -> Preferences -> Package Settings -> termX -> Key Bindings

And set something similar to:

{ "keys": ["ctrl+super+t"], "command": "open_termx_terminal" }

Alternative terminals:

By default this plugin is using native Terminal.app. You can also use iTerm2 and (thanks to awesome @JohnBehnke) Hyper.

To change settings edit:

Sublime Text 2 -> Preferences -> Package Settings -> termX -> Settings - User

And change terminal setting to iterm (default is terminal):

{
    "terminal"   :  "terminal/iterm/hyper"
}

Terminal opening strategy

By default termX is opening terminal with path to directory where currently edited file is placed.

You can change this behavious by editing settings file:

Sublime Text 2 -> Preferences -> Package Settings -> termX -> Settings - User

Default option is file and you can change it to project:

{
    "directory_mode" : "file/project"
}

FAQ

  1. The “Open in terminal” is greyed out. This happens when there is no opened file and for now I don't know if this is just a sublime bug or I need to change something. For now I saw the same behavior in

  2. How do I change path to osascript ?

    To check what is path for osascript just open terminal and type:

    which osascript
    

    With path simply go to:

    Sublime Text 2 -> Preferences -> Package Settings -> termX -> Settings - User
    

    and add:

    {
        "osascript"   :  "/usr/bin/osascript"
    }
    
  3. Can I always open main directory of project ?

    From version 2.0 you can.

    Open: “ Sublime Text 2 -> Preferences -> Package Settings -> termX -> Settings - User

    And set :
    

    { "directory_mode” : “project” }

    From now on if you have only 1 directory added to project it's going to be opened by default.
    If you have more than 1 directory in your project you'll see quickpanel to select what you would like to open.
    
    ![](https://raw.github.com/afterdesign/termX/master/messages/termx_2.gif)
    
    Thanks [@dirajkumar](https://github.com/dirajkumar) for the idea !
    
  4. Its not working for me.

    First of all enable debug mode. To do this open your settings and add: "debug": true

    After this try to open terminal again. If it's not working (and debug shouldn't repair the problem) open sublime console (default shortcut is ctrl+`) and open new issue with log between ---termX Debug Start--- and ---termX Debug End---.

    You can always ping me on twitter or simply write issue on github.

Contact

All info about me you can find on my “goto page”: http://malinowski.be or just ping me on twitter: @afterdesign

License

Licensed under the MIT license.