Skip to content

boydaihungst/file-extra-metadata.yazi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file-extra-metadata

This is a Yazi plugin that replaces the default file previewer and spotter with extra information.

Important

Minimum version: yazi v25.5.28

Preview

Before:

  • Previewer

    Before preview

  • Spotter

    Before spot

After:

  • Previewer

    After previewer

  • Spotter

    After spotter

Requirements

  • yazi >= 25.5.28
  • Tested on Linux. For MacOS, Windows: some fields will shows empty values.

Installation

Install the plugin:

ya pkg add boydaihungst/file-extra-metadata

Create ~/.config/yazi/yazi.toml and add:
For yazi < v25.12.29 (29/12/2025) replace url with name

[plugin]
  append_previewers = [
    { url = "*", run = "file-extra-metadata" },
  ]

  # Setup keybind for spotter: https://github.com/sxyazi/yazi/pull/1802
  append_spotters = [
    { url = "*", run = "file-extra-metadata" },
  ]

or

[plugin]
  previewers = [
    # ... the rest
    # disable default file plugin { name = "*", run = "file" },
    { url = "*", run = "file-extra-metadata" },
  ]

  # Setup keybind for spotter: https://github.com/sxyazi/yazi/pull/1802
  spotters = [
    # ... the rest
    # Fallback
    # { name = "*", run = "file" },
    { url = "*", run = "file-extra-metadata" },
  ]

Custom theme

Read more: sxyazi/yazi#2391

Edit or add yazi/theme.toml:

[spot]
border = { fg = "#4fa6ed" }
title = { fg = "#4fa6ed" }

# Table.
tbl_cell = { fg = "#4fa6ed", reversed = true }
tbl_col = { fg = "#4fa6ed" }

For developer

If you want to combine this with other spotter/previewer:

require("file-extra-metadata"):render_table(job, { show_plugins_section = true })

About

This is a Yazi plugin that replaces the default file preview with extra information.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages