Pretty print, minify, and validate EDN files from within Sublime Text.
Requires babashka to be installed (ie: bb
).
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
Pretty EDN is available via the Package Control plugin:
- In Sublime Text, open the Command Palette by typing Ctrl+Shift+p (Cmd+Shift+p on Mac)
- Type
install
and selectPackage Control: Install Package
- A text prompt should appear shortly after Package Control loads a list of packages from the Internet.
- Type
pretty edn
and press Enter - That's it! Pretty EDN is now installed.
You can symlink this package repo to the Sublime Text Packages directory:
cd ~
git clone [email protected]:oakmac/sublime-pretty-edn.git
ln -s ~/sublime-pretty-edn ~/Library/Application\ Support/Sublime\ Text/Packages/
- 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?