mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
Update 2025-06-06 Update 2025-06-08 Update 2025-06-11 Update 2025-06-11 Update 2025-06-18 Update 2025-06-24 |
||
|---|---|---|
| .. | ||
| LICENSE | ||
| main.lua | ||
| README.md | ||
Installation
Tip
Installing this plugin with
yawill conveniently clone the plugin from GitHub, copy it to your plugins directory, and update thepackage.tomlto lock its version 1.To install it with
yarun:ya pack -a macydnah/office
Or if you prefer a manual approach:
## For linux and MacOS git clone https://github.com/macydnah/office.yazi.git ~/.config/yazi/plugins/office.yazi ## For Windows git clone https://github.com/macydnah/office.yazi.git %AppData%\yazi\config\plugins\office.yazi
Usage
In your yazi.toml add rules to preloaders2 and previewers3 to run office plugin with office documents.
Note
Your config may be different depending if you're appending, prepending or overriding default rules. If unsure, take a look at Configuration4 and Configuration mixing5
For a general usecase, you may use the following rules
[plugin]
prepend_preloaders = [
# Office Documents
{ mime = "application/openxmlformats-officedocument.*", run = "office" },
{ mime = "application/oasis.opendocument.*", run = "office" },
{ mime = "application/ms-*", run = "office" },
{ mime = "application/msword", run = "office" },
{ name = "*.docx", run = "office" },
]
prepend_previewers = [
# Office Documents
{ mime = "application/openxmlformats-officedocument.*", run = "office" },
{ mime = "application/oasis.opendocument.*", run = "office" },
{ mime = "application/ms-*", run = "office" },
{ mime = "application/msword", run = "office" },
{ name = "*.docx", run = "office" },
]
Dependencies
Important
Make sure that these commands are installed in your system and can be found in
PATH:
libreofficepdftoppm
License
office.yazi is licensed under the terms of the MIT License
