mirror of
https://github.com/prdlk/television.git
synced 2026-11-02 21:22:53 +00:00
Import from root chezmoi source
This commit is contained in:
commit
c8c8c9a000
77 files changed
+2443
No files matched your search
@@ -0,0 +1,24 @@
|
||||
[metadata]
|
||||
name = "pdf-files"
|
||||
description = "Browse PDF files"
|
||||
requirements = ["fd", "pdftotext"]
|
||||
|
||||
[source]
|
||||
command = [
|
||||
{ name = "Default", run = "fd -t f -e pdf ." },
|
||||
{ name = "Hidden", run = "fd -t f -e pdf -H ." },
|
||||
]
|
||||
|
||||
[preview]
|
||||
command = "pdftotext -l 2 -layout '{}' - 2>/dev/null | head -100 || file '{}'"
|
||||
|
||||
[ui]
|
||||
layout = "portrait"
|
||||
|
||||
[keybindings]
|
||||
enter = "actions:open"
|
||||
|
||||
[actions.open]
|
||||
description = "Open the selected PDF with default viewer"
|
||||
command = "xdg-open {} 2>/dev/null || open {}"
|
||||
mode = "fork"
|
||||
Reference in new issue
Block a user