Skip to content

Commit

Permalink
Renamed plugin and set an alternative default pastebin
Browse files Browse the repository at this point in the history
  • Loading branch information
Paaskehare committed Nov 19, 2011
1 parent 7fb6c2b commit 4d35771
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
@@ -1,9 +1,9 @@
Metabox Sublime Plugin
Sublime Pastebin Plugin
======================

This is a simple plugin for [Sublime Text 2](http://www.sublimetext.com/2) to allow for easily pasting code to a pastebin

It takes the current selection in a file, uploads it to [Metabox](http://dl.gs), and returns the URL to the clipboard.
It takes the current selection in a file, uploads it to (by default) [i.ole.im](http://i.ole.im), and returns the URL to the clipboard.


Installation
Expand All @@ -12,11 +12,11 @@ Installation
Clone this repo into your Sublime Text 2 Packages directory
###Linux
cd ~/.config/sublime-text-2/Packages/
git clone git://github.com/Paaskehare/metabox-sublime-plugin.git
git clone git://github.com/Paaskehare/pastebin-sublime-plugin.git

###Mac
cd ~/"Library/Application Support/Sublime Text 2/Packages/"
git clone git://github.com/Paaskehare/metabox-sublime-plugin.git
git clone git://github.com/Paaskehare/pastebin-sublime-plugin.git

Usage
-----
Expand Down
4 changes: 2 additions & 2 deletions metabox.py → pastebin.py
Expand Up @@ -2,7 +2,7 @@
import urllib2
import sublime, sublime_plugin

HOSTNAME = 'http://metabox.it'
HOSTNAME = 'http://i.ole.im'
POST_FILE_FIELD = 'file'

class Part:
Expand Down Expand Up @@ -81,4 +81,4 @@ def run(self, view):
request = urllib2.Request(url=HOSTNAME, headers={'Content-Type': content_type}, data=body)
reply = urllib2.urlopen(request).read()
sublime.set_clipboard(reply)
sublime.status_message("Metabox: " + reply)
sublime.status_message("Paste: " + reply)

0 comments on commit 4d35771

Please sign in to comment.