docs: add an example of previewing the schema of a SQLite database

Credits to @AminurAlam - I got this idea from their plugin https://github.com/AminurAlam/yazi-plugins/tree/main/preview-sqlite.yazi, which is pretty convenient to work on these database files!
This commit is contained in:
sxyazi
2025-12-24 17:49:52 +08:00
parent 05234ed158
commit 7ca66b4103

View File

@@ -73,6 +73,14 @@ url = "*/"
run = 'piper -- eza -TL=3 --color=always --icons=always --group-directories-first --no-quotes "$1"'
```
### Preview the schema of a SQLite database
```toml
[[plugin.prepend_previewers]]
mime = "application/sqlite3"
run = 'piper -- sqlite3 "$1" ".schema --indent"'
```
### Use [`hexyl`](https://github.com/sharkdp/hexyl) as fallback previewer
Yazi defaults to using [`file -bL "$1"`](https://github.com/sxyazi/yazi/blob/main/yazi-plugin/preset/plugins/file.lua) if there's no matched previewer.