Created
April 16, 2013 22:25
-
-
Save kidd/5400184 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interactive("github-clone-repo", null, function(I){ | |
var document = I.buffer.document; | |
var url = document.URL; | |
var project = document.URL.match(/github.com\/([^/]+\/[^/]+)/)[1]; | |
var repoTitle = document.querySelectorAll(".js-current-repository"); | |
cloneLink = "org-protocol://github-clone://" + project; | |
document.location = cloneLink; | |
}); | |
set_protocol_handler("org-protocol", find_file_in_path("emacsclient")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment