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

  • 0.3.0
  • github.​com
  • github.​com
  • 2 months ago
  • 49 minutes ago
  • 2 months ago

Installs

  • Total 78
  • Win 0
  • Mac 69
  • Linux 9
Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 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
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 0 1 2 0 1 3 1 1 1 4 4 1 0 1 0 0 0 1 0 1 1 3 0 1 3 0 0 0 0 0 1 1 3 1 1 0 0 3 3 1 1 1 0 1 2
Linux 0 0 1 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 0 0 0 0 0 0 1 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