25.11 fixes
This commit is contained in:
@@ -206,64 +206,62 @@ in {
|
||||
};
|
||||
opener = {
|
||||
"edit" = [
|
||||
{ run = ''hx "$0" "$@"''; desc = "Helix"; block = true; }
|
||||
{ run = ''codium "$0" "$@"''; desc = "VS Code"; orphan = true; }
|
||||
{ run = ''antigravity "$0" "$0"''; desc = "Antigravity"; orphan = true; }
|
||||
{ run = ''cat "$0" "$@" | wl-copy''; desc = "Copy Contents"; }
|
||||
{ run = ''hx "$@"''; desc = "Helix"; block = true; }
|
||||
{ run = ''codium "$@"''; desc = "VS Code"; orphan = true; }
|
||||
{ run = ''cat "$@" | wl-copy''; desc = "Copy Contents"; }
|
||||
];
|
||||
"play" = [
|
||||
{ run = ''mpv "$0" "$@"''; desc = "mpv"; orphan = true; }
|
||||
{ run = ''mpv --vf=negate "$0" "$@"''; desc = "mpv inverted"; orphan = true; }
|
||||
{ run = ''mediainfo "$0"; echo "Press enter to return to yazi"; read''; block = true; desc = "Show mediainfo"; }
|
||||
{ run = ''mpv "$@"''; desc = "MPV"; orphan = true; }
|
||||
{ run = ''mpv --vf=negate "$@"''; desc = "MPV inverted"; orphan = true; }
|
||||
{ run = ''mediainfo "$1"; echo "Press enter to return to yazi"; read''; block = true; desc = "Show mediainfo"; }
|
||||
];
|
||||
"archive" = [
|
||||
{ run = ''unar "$0" "$@"''; desc = "Extract here"; }
|
||||
{ run = ''tar -x "$0" "$@"''; desc = "tar -x"; }
|
||||
{ run = ''unzip "$0" "$@"''; desc = "unzip"; }
|
||||
{ run = ''unar "$@"''; desc = "Extract here"; }
|
||||
{ run = ''tar -x "$@"''; desc = "tar -x"; }
|
||||
{ run = ''unzip "$@"''; desc = "unzip"; }
|
||||
];
|
||||
"image" = [
|
||||
{ run = ''imv "$0" "$@"''; desc = "imv"; orphan = true; }
|
||||
{ run = ''gimp "$0" "$@"''; desc = "gimp"; orphan = true; }
|
||||
{ run = ''swww img --transition-type wipe --transition-angle 60 --transition-step 120 --transition-fps 120 "$0"''; desc = "swww wallpaper"; }
|
||||
{ run = ''exiftool "$0"; echo "Press enter to return to yazi"; read''; desc = "View Exif Data"; }
|
||||
{ run = ''for f in "$0"; do magick "$f" -auto-orient "''${f%.*}.pdf"; done''; desc = "Convert to PDF"; }
|
||||
{ run = ''imv "$@"''; desc = "IMV"; orphan = true; }
|
||||
{ run = ''gimp "$@"''; desc = "Gimp"; orphan = true; }
|
||||
{ run = ''swww img --transition-type wipe --transition-angle 60 --transition-step 120 --transition-fps 120 "$1"''; desc = "swww wallpaper"; }
|
||||
{ run = ''exiftool "$1"; echo "Press enter to return to yazi"; read''; desc = "View Exif Data"; }
|
||||
{ run = ''for f in "$1"; do magick "$f" -auto-orient "''${f%.*}.pdf"; done''; desc = "Convert to PDF"; }
|
||||
];
|
||||
"svg" = [
|
||||
{ run = ''inkscape "$0" "$@"''; desc = "inkscape"; orphan = true; }
|
||||
{ run = ''firefox "$0" "$@"''; desc = "firefox"; orphan = true; }
|
||||
{ run = ''inkscape "$@"''; desc = "Inkscape"; orphan = true; }
|
||||
{ run = ''firefox "$@"''; desc = "Firefox"; orphan = true; }
|
||||
];
|
||||
"font" = [
|
||||
{ run = ''fontpreview "$0" "$@"''; desc = "fontpreview"; orphan = true; }
|
||||
{ run = ''fontforge "$0" "$@"''; desc = "fortforge"; orphan = true; }
|
||||
{ run = ''fontpreview "$@"''; desc = "Fontpreview"; orphan = true; }
|
||||
{ run = ''fontforge "$@"''; desc = "Fortforge"; orphan = true; }
|
||||
];
|
||||
"document" = [
|
||||
{ run = ''zathura "$0" "$@"''; desc = "zathura"; orphan = true; }
|
||||
{ run = ''xournal "$0" "$@"''; desc = "xournal"; orphan = true; }
|
||||
{ run = ''firefox "$0" "$@"''; desc = "firefox"; orphan = true; }
|
||||
{ run = ''nxgs flip "$0" "$@"''; desc = "nxgs flip"; }
|
||||
{ run = ''nxgs rotate "$0" "$@"''; desc = "nxgs rotate"; }
|
||||
{ run = ''nxgs interactive-merge "$0" "$@"''; block = true; desc = "nxgs merge"; }
|
||||
{ run = ''zathura "$@"''; desc = "Zathura"; orphan = true; }
|
||||
{ run = ''firefox "$@"''; desc = "Firefox"; orphan = true; }
|
||||
{ run = ''nxgs flip "$@"''; desc = "nxgs flip"; }
|
||||
{ run = ''nxgs rotate "$@"''; desc = "nxgs rotate"; }
|
||||
{ run = ''nxgs interactive-merge "$@"''; block = true; desc = "nxgs merge"; }
|
||||
];
|
||||
"browser" = [
|
||||
{ run = ''firefox "$0" "$@"''; desc = "firefox"; orphan = true; }
|
||||
{ run = ''chromium --enable-features=UseOzonePlatform --ozone-platform=wayland "$0" "$@"''; desc = "chromium"; orphan = true; }
|
||||
{ run = ''w3m "$0" "$@"''; desc = "w3m"; }
|
||||
{ run = ''lynx "$0" "$@"''; desc = "lynx"; }
|
||||
{ run = ''firefox "$@"''; desc = "Firefox"; orphan = true; }
|
||||
{ run = ''chromium --enable-features=UseOzonePlatform --ozone-platform=wayland "$@"''; desc = "Chromium"; orphan = true; }
|
||||
{ run = ''w3m "$@"''; desc = "w3m"; }
|
||||
{ run = ''lynx "$@"''; desc = "Lynx"; }
|
||||
];
|
||||
"office" = [
|
||||
{ run = ''libreoffice "$0" "$@"''; desc = "libreoffice"; orphan = true; }
|
||||
{ run = ''libreoffice --view "$0" "$@"''; desc = "libreoffice read-only"; orphan = true; }
|
||||
{ run = ''libreoffice "$@"''; desc = "LibreOffice"; orphan = true; }
|
||||
{ run = ''libreoffice --view "$@"''; desc = "LibreOffice read-only"; orphan = true; }
|
||||
];
|
||||
"shell" = [
|
||||
{ run = ''bash -c "$0"; echo "Press enter to return to yazi"; read''; desc = "bash -c"; }
|
||||
{ run = ''fish -c "$0"; echo "Press enter to return to yazi"; read''; desc = "fish -c"; }
|
||||
{ run = ''sh -c "$0"; echo "Press enter to return to yazi"; read''; desc = "sh -c"; }
|
||||
{ run = ''bash -c "$1"; echo "Press enter to return to yazi"; read''; desc = "bash -c"; }
|
||||
{ run = ''fish -c "$1"; echo "Press enter to return to yazi"; read''; desc = "fish -c"; }
|
||||
{ run = ''sh -c "$1"; echo "Press enter to return to yazi"; read''; desc = "sh -c"; }
|
||||
];
|
||||
"python" = [
|
||||
{ run = ''python "$@"; echo "Press enter to return to yazi"; read''; desc = "python"; block = true; }
|
||||
{ run = ''python "$@"; echo "Press enter to return to yazi"; read''; desc = "Python"; block = true; }
|
||||
];
|
||||
"directory" = [
|
||||
{ run = ''lazygit "$0"''; desc = "lazygit"; }
|
||||
{ run = ''lazygit "$1"''; desc = "LazyGit"; }
|
||||
];
|
||||
};
|
||||
open.rules = [
|
||||
|
||||
Reference in New Issue
Block a user