mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-02-04 06:32:03 +00:00
Update 2025-02-24
Update 2025-02-03 Update 2025-02-04 Update 2025-02-09 Update 2025-02-14 Update 2025-02-15 Update 2025-02-22 Update 2025-02-24
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# torrent-preview.yazi
|
||||
|
||||
[Yazi](https://github.com/sxyazi/yazi) plugin to preview `application/x-bittorrent` files
|
||||
[Yazi](https://github.com/sxyazi/yazi) plugin to preview `application/bittorrent` files
|
||||
|
||||

|
||||
|
||||
@@ -13,6 +13,14 @@
|
||||
|
||||
### Linux/MacOS
|
||||
|
||||
Using the [Yazi Package Manager](https://yazi-rs.github.io/docs/cli/#package-manager):
|
||||
|
||||
```sh
|
||||
ya pack -a kirasok/torrent-preview
|
||||
```
|
||||
|
||||
Or manually:
|
||||
|
||||
```sh
|
||||
git clone https://github.com/kirasok/torrent-preview.yazi.git ~/.config/yazi/plugins/torrent-preview.yazi
|
||||
```
|
||||
@@ -23,6 +31,10 @@ Add this to your `yazi.toml`:
|
||||
|
||||
```toml
|
||||
[[plugin.prepend_previewers]]
|
||||
mime = "application/x-bittorrent"
|
||||
mime = "application/bittorrent"
|
||||
run = "torrent-preview"
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> Yazi after `v0.4` removes `x-` prefix from subtype, so even if `file -i` outputs `application/x-bittorrent`, you should use `application/bittorrent` ([relevant issue](https://github.com/kirasok/torrent-preview.yazi/issues/2))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user