Miller now in yazi. To install, use the command ya pack -a Reledia/miller and add to your yazi.toml:
[plugin]
prepend_previewers = [
{ mime = "text/csv", run = "miller"},
]To change colors of keys and values, edit the init.lua file after the --key-color and --value-color flags. To view a list of possible colors, use mlr --list-color-names. Make sure to have miller installed and inside your PATH.
To adapt this plugin to the other format supported from miller (like json):
- copy the plugin folder
- change the name of the copied folder into miller_(fmt)
- change the
--icsvflag insideinit.luato--i(fmt) - add the correct mime/name rule into
prepend_previewersand the exec asmiller_(fmt)