Package Details: lf-sixel-git 28.1.r1.g8997e5b-1

Git Clone URL: https://aur.archlinux.org/lf-sixel-git.git (read-only, click to copy)
Package Base: lf-sixel-git
Description: lf is a terminal file manager written in Go from fork supporting sixel
Upstream URL: https://github.com/horriblename/lf
Licenses: MIT
Conflicts: lf
Provides: lf
Submitter: primalmotion
Maintainer: primalmotion
Last Packager: primalmotion
Votes: 3
Popularity: 0.000100
First Submitted: 2022-07-25 19:02 (UTC)
Last Updated: 2023-03-31 16:21 (UTC)

Dependencies (3)

Required by (7)

Sources (1)

Latest Comments

1 2 Next › Last »

primalmotion commented on 2023-05-31 17:50 (UTC)

@surfer it is a git package. It will always get the latest master. You probably already are on 30.r34.g61ffdd1-1. The version of PKGBUILD does not matter here.

surfer commented on 2023-05-31 17:42 (UTC)

May I request an update to version 30? Upstream has many fixes.

primalmotion commented on 2023-03-31 16:32 (UTC)

@atomicfs no worries

atomicfs commented on 2023-03-31 16:27 (UTC)

Ups, sorry man for flagging it out of date just few minutes ago.

primalmotion commented on 2023-03-31 16:23 (UTC)

I have updated the base package because why not. But before flagging it out of date, please read the text in red that tells:

This seems to be a VCS package. Please do not flag it out-of-date if the package version in the AUR does not match the most recent commit. Flagging this package should only be done if the sources moved or changes in the PKGBUILD are required because of recent upstream changes. 

primalmotion commented on 2022-10-05 19:23 (UTC)

@rek2 yeah you still need a previewer in lfrc

set previewer ~/.config/lf/previewer

Here's mine

#!/bin/sh

image() {
     chafa "$1" -f sixel -s "$(($2-2))x$(($3-2))" | sed 's/#/\n#/g'
}

batorcat() {
    file="$1"
    shift
    if command -v bat >/dev/null 2>&1; then
        bat --color=always --style=plain --pager=never "$file" "$@"
    else
        cat "$file"
    fi
}

CACHE="$HOME/.cache/lf/thumbnail.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | awk '{print $1}'))"

case "$(printf "%s\n" "$(readlink -f "$1")" | awk '{print tolower($0)}')" in
*.tgz | *.tar.gz) tar tzf "$1" ;;
*.tar.bz2 | *.tbz2) tar tjf "$1" ;;
*.tar.txz | *.txz) xz --list "$1" ;;
*.tar) tar tf "$1" ;;
*.zip | *.jar | *.war | *.ear | *.oxt) unzip -l "$1" ;;
*.rar) unrar l "$1" ;;
*.7z) 7z l "$1" ;;
*.[1-8]) man "$1" | col -b ;;
*.o) nm "$1" ;;
*.torrent) transmission-show "$1" ;;
*.iso) iso-info --no-header -l "$1" ;;
*.odt | *.ods | *.odp | *.sxw) odt2txt "$1" ;;
*.doc) catdoc "$1" ;;
*.docx) docx2txt "$1" - ;;
*.xls | *.xlsx)
    ssconvert --export-type=Gnumeric_stf:stf_csv "$1" "fd://1" | batorcat --language=csv
    ;;
*.wav | *.mp3 | *.flac | *.m4a | *.wma | *.ape | *.ac3 | *.og[agx] | *.spx | *.opus | *.as[fx] | *.mka)
    exiftool "$1"
    ;;
*.pdf)
    [ ! -f "${CACHE}.jpg" ] &&
        pdftoppm -jpeg -f 1 -singlefile "$1" "$CACHE"
    image "${CACHE}.jpg" "$2" "$3" "$4" "$5"
    ;;
*.epub)
    [ ! -f "$CACHE" ] &&
        epub-thumbnailer "$1" "$CACHE" 1024
    image "$CACHE" "$2" "$3" "$4" "$5"
    ;;
*.html)
    [ ! -f "$CACHE" ] &&
        wkhtmltopdf "$1" - | pdftoppm -jpeg -f 1 -singlefile - "$CACHE"
    image "${CACHE}.jpg" "$2" "$3" "$4" "$5"
    ;;
*.avi | *.mp4 | *.wmv | *.dat | *.3gp | *.ogv | *.mkv | *.mpg | *.mpeg | *.vob | *.fl[icv] | *.m2v | *.mov | *.webm | *.ts | *.mts | *.m4v | *.r[am] | *.qt | *.divx)
    [ ! -f "${CACHE}.jpg" ] &&
        ffmpegthumbnailer -i "$1" -o "${CACHE}.jpg" -s 0 -q 5
    image "${CACHE}.jpg" "$2" "$3" "$4" "$5"
    ;;
*.bmp | *.jpg | *.jpeg | *.png | *.xpm | *.webp | *.jfif)
    image "$1" "$2" "$3" "$4" "$5"
    ;;
*.ino)
    batorcat --language=cpp "$1"
    ;;
*)
    batorcat "$1"
    ;;
esac
exit 0

rek2 commented on 2022-10-05 17:04 (UTC) (edited on 2022-10-05 17:10 (UTC) by rek2)

this is nice! love GO+sixel, btw I install, run lf and cant see the images, do I need to modify anything on the config?

primalmotion commented on 2022-09-10 17:24 (UTC)

@lonelion done. Thank you!

lonelion commented on 2022-09-10 14:19 (UTC)

The comment section seems to mangle the patch, anyway you can download it from here https://www.yaroslavps.com/files/0001-Install-desktop-file.patch

That site is hosted in the Netherlands, so it shouldn't be blocked.

lonelion commented on 2022-09-10 14:12 (UTC)

Sure, here it is:

From 8b055461d9810c8883f0e04bfe0cd9634d3f783b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= yps@yaroslavps.com Date: Wed, 7 Sep 2022 23:12:53 +0300 Subject: [PATCH] Install desktop file

PKGBUILD didn't install desktop file.

PKGBUILD | 2 ++ 1 file changed, 2 insertions(+)

diff --git a/PKGBUILD b/PKGBUILD index ddf2731..a6827e6 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -41,6 +41,8 @@ package() { cd "${srcdir}/${_pkgname}" install -Dm755 -t "${pkgdir}/usr/bin" ./lf

  • install -Dm644 -t "${pkgdir}/usr/share/applications" ./lf.desktop + install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ./LICENSE install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" ./README.md ./etc/lfrc.example install -Dm644 -t "${pkgdir}/usr/share/${pkgname}" ./etc/lfcd.sh -- 2.37.3