Update 2025-09-30

Update 2025-09-30

Update 2025-09-30
This commit is contained in:
2025-09-17 16:43:28 +03:00
parent 724734567f
commit c50febb922
26 changed files with 253 additions and 186 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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 |
| ------------ | ------------- | --------------------- |

View File

@@ -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

View File

@@ -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