28

How do I install plugins from github for Sublime Text 3? I am trying to install this. What I have done so far is installing displayfunctions.py into Packages/Display-Functions/displayfunctions.py (I created a new folder Display-Functions in the Packages folder to hold displayfuntions.py). It still doesn't work. How can I fix this?

5 Answers 5

50

This installation flow work for any Sublime-Text 2/3 plugins.

  • Quit Sublime

  • Go to folder Packages:

    • Windows: %APPDATA%\Sublime Text 3\Packages
    • OS X: ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
    • Linux: ~/.config/sublime-text-3/Packages/
  • Run: git clone https://github.com/BoundInCode/Display-Functions.git

  • Open Sublime and try to use.

Sign up to request clarification or add additional context in comments.

5 Comments

does this integrate with package control? if I later want to remove the package, can I just delete the clone or will that leave null references?
@rblakeley Yes it integrate with Package Control.
Should the existing ST2 package currently available on Package Control ever be updated to support ST3, you should clone the repository Display Functions (Java), since that's the name registered in the Package Control channel: git clone https://github.com/BoundInCode/Display-Functions.git "Display Functions (Java)"
@Siddharth Which plugin did you tried install? Did you have any error messages? Also check if this plugin compatible with your ST version.
In my case, I didnt have to restart Sublime. I just went to folder Packages, and then run git clone command. Thanks @AntonDozortsev
39

In Sublime Text 3, if you already have Package Control, but the package isn't showing up in Install Packages, for instance ChainOfCommand, you need to "Add the Repository" to add the package to Package Control, only then can you install it.

Here's a step-by-step process:

  1. In a Web Browser, navigate to your plugin, copy the git url (should end with a .git).

    • for ChainOfCommand, this is https://github.com/jisaacks/ChainOfCommand.git

    Get the git URL in github

  2. In Sublime, Open Package Control

    Open Package Control from the Preferences Menu

  3. Select Package Control: Add Repository

    enter image description here

  4. At the bottom of the Sublime window, an input box will appear. Paste the URL. AND REMOVE THE .GIT EXTENSION; hit Enter.

    The Add Repo Input Box

    • Now the Repo has been added to Package Control, it's not installed though
  5. Open Package Control again (like in step 2).

  6. Select Package Control: Install Packages

    enter image description here

  7. Now you should be able to search for, and install the package that had previously been missing, ie ChainOfCommand.


Alternatively, If you have TortoiseGit, you can do a manual install:

  1. Similar to above, go copy the URL (include .git this time).

  2. In Sublime, go to Preferences > Browse Packages (This opens the Packages folder).

    Browse Sublime Packages

  3. Right-click on an empty space of the folder > Git Clone

    Git Clone via Tortoise

  4. Because the URL is already on your clipboard, it should automatically appear in the URL of the Git Clone Window. Press OK and Voila, Installed.

2 Comments

'install package' command saved me! I kept wondering for close to 30min where that git repo was even after adding it and seeing it appear 3 times in the Package Control User Settings!
This should be the accepted answer. It includes the in-app way to do this with "Add Repository" as well as the manual option, although it does use TortoiseGit for the manual option, which is Windows only.
4

For Sublime text 3, I've installed some packages from GitHub like this:

  • Install Package Control:

    • open console: View->Show Console (or CTRL+`)
    • copy and paste the code from packagecontrol.io and run (press Enter)

    • In the console, select Add repository

    • Add the GitHub link and press Enter
    • In console, select 'install package' and press Enter

You are finished and ready to use the packages.

Update: Thanks @GMunguia for remembering the warning.

1 Comment

From Package Control website: "Please do not redistribute the install code via another website. It will change with every release. Instead, please link to this page. ".
0

Since this plugin is available via Package Control, which I find is the most convenient way to install packages, you should look into installing that. It's a widely supported package manager for Sublime Text 2/3.

2 Comments

It ain't on PackageControl, atleast not for ST3. :(
It is not available via Package control.
0

Go to tools then command palette... , then type package control: install package and hit enter. after that type the name of the package you want . it is very easy

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.