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

Pretty EDN

by Chris Oakman ST4 MacLinux

Format, Validate, Minify EDN files in Sublime Text

Details

Installs

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

Readme

Source
raw.​githubusercontent.​com

Sublime Pretty EDN

Pretty print, minify, and validate EDN files from within Sublime Text.

Requires babashka to be installed (ie: bb).

Usage

Commands available:

  • Pretty EDN: Format
  • Pretty EDN: Minify
  • Pretty EDN: Validate
  • Pretty EDN: to JSON minified
  • Pretty EDN: to JSON pretty
  • Pretty EDN: from JSON
  • Pretty EDN: from JSON keywordized

Installation

Package Control

Pretty EDN is available via the Package Control plugin:

  1. In Sublime Text, open the Command Palette by typing Ctrl+Shift+p (Cmd+Shift+p on Mac)
  2. Type install and select Package Control: Install Package
  3. A text prompt should appear shortly after Package Control loads a list of packages from the Internet.
  4. Type pretty edn and press Enter
  5. That's it! Pretty EDN is now installed.

Linux / OSX

You can symlink this package repo to the Sublime Text Packages directory:

cd ~
git clone git@github.com:oakmac/sublime-pretty-edn.git
ln -s ~/sublime-pretty-edn ~/Library/Application\ Support/Sublime\ Text/Packages/

TODO / Future Ideas

  • setting to allow location of bb (Issue #3)
  • add “to YAML” support (Issue #4)
  • config options for spacing for formatting
  • config to use fipp instead of clojure.pprint
  • option to keywordize-keys / unkeywordize-keys
  • Use Tonsky's Python Clojure parser and remove dependency on babashka?

License

ISC License