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

y​UML

by cluther ST2/ST3

yUML (yuml.me) support for Sublime Text.

Details

Installs

  • Total 2K
  • Win 1K
  • OS X 743
  • Linux 563
Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10
Windows 1 0 1 0 0 1 0 0 0 0 0 2 0 0 0 0 0 2 2 0 1 0 1 1 0 1 0 0 3 0 0 2 2 0 1 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 2 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1
Linux 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

yUML for Sublime Text

Makes using yUML from Sublime Text easier. Making two great tools better by making them work together.

Sublime Text 2 and 3 on all platforms should be supported.

Features

There are currently only two features, but they're the features you want.

  1. Syntax highlighting for *.yuml files.

  2. Opening Diagrams in Browser

Install

Please use Package Control. You'll be happier that way unless you plan on hacking on the code.

  1. Package Control: Install Package
  2. Install “yUML”

Usage

Syntax highlighting will automatically be done for files with a .yuml extension. For files with different extensions, you will have to set the syntax yourself.

To open your diagram in your default browser, open the command palette with super-shift-p then search for yuml diagram and select yUML: Open Diagram in Browser.

Alternatively, you may use the keybinding super-b.

To change the diagram settings, open the command palette with super-shift-p then search for yuml user and select Preferences: yUML Settings - User. This will open your user settings for yUML. This is a JSON file which can contain overrides of the following default settings.

{
    /*
     * Default diagram type.
     *
     * Valid options: activity, class, usecase
     */
    "default_type": "class",

    /*
     * Default output file type.
     *
     * Valid options: jpg, json, pdf, png, svg
     */
    "default_extension": "png",

    /*
     * Default diagram style.
     *
     * Valid optins: nofunky, plain, scruffy
     */
    "default_style": "scruffy",

    /*
     * Default diagram orientation.
     *
     * Valid options:
     *   LR = Left-to-right
     *   RL = Right-to-left
     *   TB = Top-to-bottom
     *   BT = Bottom-to-top
     */
    "default_dir": "LR",

    /*
     * Default output scale where applicable.
     *
     * Valid options:
     *    60 = Tiny
     *    80 = Small
     *   100 = Normal
     *   120 = Big
     *   180 = Huge
     */
    "default_scale": "100",
}

Additional Commands

If you would prefer not to set a default setting each time you create a diagram, you may simply use one of the following three commands.

  • Open Class Diagram in Browser
  • Open Activity Diagram in Browser
  • Open Use Case Diagram in Browser

Caveats

It has come to my attention that diagrams that encode to URIs longer than 4096 characters will not work. I've made a clear error message to indicate this is a problem in version 1.0.1, but am looking to switch to POST request instead of GET requests in a future version to supporter larger diagrams.