mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-02-04 06:32:03 +00:00
Update 2025-09-30
Update 2025-09-30 Update 2025-09-30
This commit is contained in:
@@ -30,33 +30,33 @@ hash = "62251f94eb67648d42cdfcfb8be0fad2"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:git"
|
||||
rev = "d7588f6"
|
||||
rev = "d1c8baa"
|
||||
hash = "63b6c222bf2103b3023389dde5e2ecfe"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:chmod"
|
||||
rev = "d7588f6"
|
||||
hash = "1adc12c2b2b025411ab61eb8f0879574"
|
||||
rev = "d1c8baa"
|
||||
hash = "8ad3e90b079190b4905f24a44f4ca06b"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:full-border"
|
||||
rev = "d7588f6"
|
||||
rev = "d1c8baa"
|
||||
hash = "3996fc74044bc44144b323686f887e1"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:mount"
|
||||
rev = "d7588f6"
|
||||
hash = "e1de3054c0d1a2d8dc6f007eadc0fa31"
|
||||
rev = "d1c8baa"
|
||||
hash = "435a2af56ecfb3d05755fd5e24977d8b"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:smart-filter"
|
||||
rev = "d7588f6"
|
||||
hash = "e56b7abf3c06e8ce496eadcca168c093"
|
||||
rev = "d1c8baa"
|
||||
hash = "bcda8eeb3f4013bae156aecabfc745e8"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:diff"
|
||||
rev = "d7588f6"
|
||||
hash = "47865a70cade14a0b9b6bc6a54f16bdb"
|
||||
rev = "d1c8baa"
|
||||
hash = "82376c3381ae915fd799d40f4dd4c6cd"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "AnirudhG07/rich-preview"
|
||||
@@ -65,13 +65,13 @@ hash = "b4040931f0d2f9670ddb4923e55cd881"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "macydnah/office"
|
||||
rev = "33cc61a"
|
||||
hash = "d7e31c616cc6c8a1f05fdff7c47dae98"
|
||||
rev = "41ebef8"
|
||||
hash = "5805affd3ae8adcb3c72b6997d21c0a6"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "boydaihungst/mediainfo"
|
||||
rev = "0e2ae47"
|
||||
hash = "6656f2869ae2274a0e1860876f15186f"
|
||||
rev = "2093ab7"
|
||||
hash = "16a10359fc2a3cd8cc8bcfbe00f744d3"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "iynaix/time-travel"
|
||||
|
||||
@@ -21,7 +21,7 @@ run = "plugin chmod"
|
||||
desc = "Chmod on selected files"
|
||||
```
|
||||
|
||||
Make sure the <kbd>c</kbd> => <kbd>m</kbd> key is not used elsewhere.
|
||||
Note that, the keybindings above are just examples, please tune them up as needed to ensure they don't conflict with your other commands/plugins.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ run = "plugin diff"
|
||||
desc = "Diff the selected with the hovered file"
|
||||
```
|
||||
|
||||
Make sure the <kbd>C</kbd> + <kbd>d</kbd> key is not used elsewhere.
|
||||
Note that, the keybindings above are just examples, please tune them up as needed to ensure they don't conflict with your other commands/plugins.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
@@ -50,6 +50,9 @@ using `ffmpeg` if available and media metadata using `mediainfo`.
|
||||
|
||||
If it output `Not found` then add it to your PATH environment variable. It's better to ask ChatGPT to help you (Prompt: `Add MediaInfo CLI to PATH environment variable in Windows`).
|
||||
|
||||
- Install ImageMagick (for linux, you can use your distro package manager to install):
|
||||
https://imagemagick.org/script/download.php
|
||||
|
||||
- Install this plugin:
|
||||
|
||||
```bash
|
||||
|
||||
@@ -25,7 +25,9 @@ on = "M"
|
||||
run = "plugin mount"
|
||||
```
|
||||
|
||||
Available keybindings:
|
||||
Note that, the keybindings above are just examples, please tune them up as needed to ensure they don't conflict with your other commands/plugins.
|
||||
|
||||
## Actions
|
||||
|
||||
| Key binding | Alternate key | Action |
|
||||
| ------------ | ------------- | --------------------- |
|
||||
|
||||
@@ -38,30 +38,23 @@ function M:doc2pdf(job)
|
||||
:arg({
|
||||
"--headless",
|
||||
"--convert-to",
|
||||
"pdf:draw_pdf_Export:{"
|
||||
.. '"PageRange":{'
|
||||
.. '"type":"string",'
|
||||
.. '"value":'
|
||||
.. '"'
|
||||
.. job.skip + 1
|
||||
.. '"'
|
||||
.. "}"
|
||||
.. "}",
|
||||
'pdf:draw_pdf_Export:{"PageRange":{"type":"string","value":"' .. job.skip + 1 .. '"}}',
|
||||
"--outdir",
|
||||
tmp,
|
||||
tostring(job.file.url),
|
||||
})
|
||||
:stdin(Command.NULL)
|
||||
:stdout(Command.PIPED)
|
||||
:stderr(Command.NULL)
|
||||
:stderr(Command.PIPED)
|
||||
:output()
|
||||
|
||||
if not libreoffice.status.success then
|
||||
ya.err(
|
||||
libreoffice.stdout:match("LibreOffice .+"):gsub("%\n.*", "")
|
||||
.. " "
|
||||
.. libreoffice.stdout:match("Error .+"):gsub("%\n.*", "")
|
||||
)
|
||||
local output = libreoffice.stdout .. libreoffice.stderr
|
||||
local version = (output:match("LibreOffice .+") or ""):gsub("%\n.*", "")
|
||||
local error = (output:match("Error:? .+") or ""):gsub("%\n.*", "")
|
||||
if version ~= "" or error ~= "" then
|
||||
ya.err((version or "LibreOffice") .. " " .. (error or "Unknown error"))
|
||||
end
|
||||
return nil, Err("Failed to preconvert `%s` to a temporary PDF", job.file.name)
|
||||
end
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ run = "plugin smart-filter"
|
||||
desc = "Smart filter"
|
||||
```
|
||||
|
||||
Make sure the <kbd>F</kbd> key is not used elsewhere.
|
||||
Note that, the keybindings above are just examples, please tune them up as needed to ensure they don't conflict with your other commands/plugins.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user