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
  • 2 hours ago
  • 12 years ago

Installs

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