Pretty EDN
Format, Validate, Minify EDN files in Sublime Text
Details
Installs
- Total 489
- Win 0
- Mac 421
- Linux 68
Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 3 | 2 | 3 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 1 | 2 | 1 | 0 | 0 | 1 | 1 | 2 | 3 | 2 | 0 | 2 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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:
- 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.
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?