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