solorice/config/yazi/plugins/miller.yazi
Kristofers Solo a42ded1119 Use dotter
2024-08-28 09:02:07 +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 Use dotter 2024-08-28 09:02:07 +03:00

miller.yazi

Miller now in yazi. To install, clone the repo inside ~/.config/yazi/plugins/:

[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)