diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-28 15:42:50 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-28 15:42:50 +0900 |
| commit | ae78dbbff81196f1d7bc8fabf84d05e6b9f3ca03 (patch) | |
| tree | fdc69ee3e2772aa4db7e8efe4bd30d101c7f82ac /fedora/.config/yazi/plugins/mime-ext.yazi/README.md | |
| parent | 06ad645351572c0e7188c52028998384d718df2e (diff) | |
Diffstat (limited to 'fedora/.config/yazi/plugins/mime-ext.yazi/README.md')
| -rw-r--r-- | fedora/.config/yazi/plugins/mime-ext.yazi/README.md | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/fedora/.config/yazi/plugins/mime-ext.yazi/README.md b/fedora/.config/yazi/plugins/mime-ext.yazi/README.md deleted file mode 100644 index 3c2ee1f..0000000 --- a/fedora/.config/yazi/plugins/mime-ext.yazi/README.md +++ /dev/null @@ -1,56 +0,0 @@ -# mime-ext.yazi - -A mime-type provider based on a file extension database, replacing the [builtin `file(1)`](https://github.com/sxyazi/yazi/blob/main/yazi-plugin/preset/plugins/mime.lua) to speed up mime-type retrieval at the expense of accuracy. - -See https://yazi-rs.github.io/docs/tips#make-yazi-even-faster for more information. - -## Installation - -```sh -ya pkg add yazi-rs/plugins:mime-ext -``` - -## Usage - -Add this to your `~/.config/yazi/yazi.toml`: - -```toml -[[plugin.prepend_fetchers]] -id = "mime" -name = "*" -run = "mime-ext" -prio = "high" -``` - -## Advanced - -You can also customize it in your `~/.config/yazi/init.lua` with: - -```lua -require("mime-ext"):setup { - -- Expand the existing filename database (lowercase), for example: - with_files = { - makefile = "text/makefile", - -- ... - }, - - -- Expand the existing extension database (lowercase), for example: - with_exts = { - mk = "text/makefile", - -- ... - }, - - -- If the mime-type is not in both filename and extension databases, - -- then fallback to Yazi's preset `mime` plugin, which uses `file(1)` - fallback_file1 = false, -} -``` - -## TODO - -- Add more file types (PRs welcome!). -- Compress mime-type tables. - -## License - -This plugin is MIT-licensed. For more information check the [LICENSE](LICENSE) file. |
