All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- honor NO_COLOR env variable: when non-empty, disable color
- also augment nested lists/dicts in expression arg
- add
&
operator do filter list content - accessing a non-existent key in dict returns None instead of KeyError
- accessing a non-existent index in list returns None instead of IndexError
- implement
--null-input
- don't crash if config file raises an exception
- exec
~/.config/pjy/lib.py
which can be used to inject custom helpers dict.update
now returns the dict itself- implement
--tab
- implement
--indent N
- implement
--compact-output
- implement
--ascii-output
alias - implement
--raw-output
- implement
--monochrome-output
- implement
--arg KEY VALUE
- unit tests
- lists and dicts literals in input expression support pjy's custom operations
- use 'd' expression by default
- list/dict-comprehensions overriding
- python2 install attempt is prevented
- add --ascii and default to unicode output
- import 're' by default
- add --version flag
- don't add an empty line after colorized output
- colorize only if stdout is a TTY
- support optional colorization with pygments
- README: add a note on security
- don't crash in case of broken pipe or interrupt
- reduce exception traceback generated by user expression
- report read errors and decoding error
- don't pollute expression-induced exceptions with pjy code