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

Mark​Press

by rposbo ST2

Pushes the current active sublimetext file to a metaweblog compatible blog, optionally applying markdown

Details

  • 2012.09.19.07.36.05
  • github.​com
  • github.​com
  • 12 years ago
  • 1 hour ago
  • 12 years ago

Installs

  • Total 35
  • Win 17
  • Mac 15
  • Linux 3
Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20
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
Mac 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
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

Readme

Source
raw.​githubusercontent.​com

Pushes the currently active SublimeText file to a metaweblog compatible blog

blog settings

Relies on a settings file called "sublimemarkpress.sublime-settings" using the structure:
{
    "xmlrpcurl": <URL to xml rpc endpoint>,
    "username": <username>,
    "password": <password>
}

tags

blog tags are optional at the top of the file in the structure:

title

blog title is the first line following that section; if it starts with “#” then it's assumed to be a markdown post

markdown

If the file “markdown2.py” from the awesome repo https://github.com/trentm/python-markdown2/tree/master/lib exists, markdown is enabled

usage

Currently, you need to copy this file into the sublimetext packages/user directory. Then on the file you wish to post press ctrl+' and type “view.run_command('publish')”

key mapping

Doesn't pass the “view”, so not sure how to do this correctly yet.