solorice/config/yazi/plugins/miller.yazi
2024-10-18 09:09:49 +03:00
..
DO_NOT_MODIFY_ANYTHING_IN_THIS_DIRECTORY Use dotter 2024-08-28 09:02:07 +03:00
init.lua Use dotter 2024-08-28 09:02:07 +03:00
LICENSE Use dotter 2024-08-28 09:02:07 +03:00
README.md Update: 2024-10-17 2024-10-18 09:09:49 +03:00

miller.yazi

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"},
]

Preview

preview

Color

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.

Other types of file

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 --icsv flag inside init.lua to --i(fmt)
  • add the correct mime/name rule into prepend_previewers and the exec as miller_(fmt)