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 375
  • Win 0
  • Mac 327
  • Linux 48
May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 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
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 0
Mac 0 1 1 0 0 0 0 0 0 1 4 1 0 1 1 0 0 1 0 0 2 3 1 2 3 0 0 1 1 1 0 1 1 0 0 1 0 0 0 0 0 1 1 1 1 1
Linux 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 0 0 0 0 0 0 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