108 lines
2.6 KiB
TOML
108 lines
2.6 KiB
TOML
[mgr]
|
|
show_hidden = true
|
|
linemode = "size"
|
|
show_symlink = true
|
|
|
|
[preview]
|
|
wrap = "yes"
|
|
tab_size = 2
|
|
max_width = 600
|
|
max_height = 900
|
|
cache_dir = ""
|
|
image_delay = 30
|
|
image_filter = "triangle"
|
|
image_quality = 75
|
|
sixel_fraction = 15
|
|
ueberzug_scale = 1
|
|
ueberzug_offset = [ 0, 0, 0, 0 ]
|
|
|
|
[opener]
|
|
pdfview = [
|
|
{ run = 'evince "$@"', orphan = true, for = "unix" },
|
|
]
|
|
docedit = [
|
|
{ run = 'lowriter "$@"', orphan = true, for = "linux" },
|
|
]
|
|
gimp = [
|
|
{ run = 'gimp "$@"', orphan = true, for = "linux" },
|
|
]
|
|
imgview = [
|
|
{ run = 'swayimg "$@"', orphan = true, for = "linux" }
|
|
]
|
|
edit = [
|
|
{ run = '$EDITOR "$@"', block = true, for = "unix" }
|
|
]
|
|
open = [
|
|
{ run = 'xdg-open "$1"', desc = "Open", for = "linux" },
|
|
]
|
|
play = [
|
|
{ run = 'mpv --force-window "$@"', orphan = true, for = "unix" },
|
|
]
|
|
reveal = [
|
|
{ run = 'xdg-open "$(dirname "$1")"', desc = "Reveal", for = "linux" },
|
|
]
|
|
extract = [
|
|
{ run = 'ouch d -y "$@"', desc = "Extract here with ouch", for = "unix" },
|
|
]
|
|
|
|
[open]
|
|
rules = [
|
|
# Folder
|
|
{ name = "*/", use = [ "edit", "open", "reveal" ] },
|
|
{ mime = "image/*", use = "imgview" },
|
|
{ mime = "text/*", use = "edit" },
|
|
{ mime = "{audio,video}/*", use = [ "play", "reveal" ] },
|
|
# { mime = "application/json", use = "edit" },
|
|
{ name = "*.json", use = "edit" },
|
|
{ name = "*.odt", use = "docedit" },
|
|
{ name = "*.doc", use = "docedit" },
|
|
{ name = "*.docx", use = "docedit" },
|
|
{ name = "*.xls", use = "docedit" },
|
|
{ name = "*.xlsx", use = "docedit" },
|
|
{ name = "*.xcf", use = "gimp" },
|
|
|
|
# Multiple openers for a single rule
|
|
{ name = "*.html", use = [ "open", "edit" ] },
|
|
# Empty file
|
|
{ mime = "inode/empty", use = [ "edit", "reveal" ] },
|
|
# Fallback
|
|
{ name = "*", use = [ "open", "reveal" ] },
|
|
]
|
|
prepend_rules = [
|
|
{ name = "*.pdf", use = "pdfview" }
|
|
]
|
|
|
|
append_rules = [
|
|
{ name = "*.pdf", use = "pdfview" },
|
|
]
|
|
|
|
[input]
|
|
cursor_blink = true
|
|
|
|
[confirm]
|
|
trash = false
|
|
overwrite = true
|
|
|
|
[[plugin.prepend_fetchers]]
|
|
id = "git"
|
|
name = "*"
|
|
run = "git"
|
|
|
|
[[plugin.prepend_fetchers]]
|
|
id = "git"
|
|
name = "*/"
|
|
run = "git"
|
|
|
|
[plugin]
|
|
prepend_previewers = [
|
|
{ name = "*.md", run = "glow" },
|
|
# Archive previewer
|
|
{ mime = "application/*zip", run = "ouch" },
|
|
{ mime = "application/x-tar", run = "ouch" },
|
|
{ mime = "application/x-bzip2", run = "ouch" },
|
|
{ mime = "application/x-7z-compressed", run = "ouch" },
|
|
{ mime = "application/x-rar", run = "ouch" },
|
|
{ mime = "application/x-xz", run = "ouch" },
|
|
{ mime = "application/xz", run = "ouch" },
|
|
]
|