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

Poster

by ssddanbrown ST3

A Sublime Text 3 plugin to post the contents of the current tab

Details

Installs

  • Total 108
  • Win 65
  • Mac 25
  • Linux 18
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 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 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
Mac 0 0 0 1 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
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 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

Poster

A super simple Sublime Text plugin for posting text in the current tab content to a server.

Configuration

Settings are accessed via the Preferences > Package Settings > Poster menu. The settings can take the following options:

  • poster_url - The url to post data to.
  • poster_content_key - The post key that the current tab content will be sent on. Defaults to 'content'.
  • poster_data - An object containing any extra variables you want to add to the post data. This can be very useful for sending data to API's and you need to add keys.

The poster_url setting is required for Poster to work. Here is the default settings file:

{
    "poster_url": "http://example.com",
    "poster_content_key": "content",
    "poster_data": {
        "a": "This is an example post item",
        "b": "Another post variable"
    }
}

By default some extra post data is sent, “a” & “b”, You can either override with your own poster_data or empty out the contents like below which will send no extra data:

{
    "poster_data": {}
}

How to use

A shortcut is available, ctrl+shift+o, or you can find the option Poster in the tools menu.

Contributing

If you find any issues or would like a new feature feel free to add a github issue or create a pull-request.

Attribution

This plugin uses the Requests HTTP library.