Blaze@lemmy.zip to Linux@programming.dev · 5 months agoYouTube Feed With FZF, Thumbnails And Import/Export Subs To NewPipefiles.catbox.moeimagemessage-square4fedilinkarrow-up141arrow-down11file-text
arrow-up140arrow-down1imageYouTube Feed With FZF, Thumbnails And Import/Export Subs To NewPipefiles.catbox.moeBlaze@lemmy.zip to Linux@programming.dev · 5 months agomessage-square4fedilinkfile-text
minus-squarethingsiplay@beehaw.orglinkfedilinkarrow-up4·5 months agoNice scripts. I want to give an advice you may or may not know. In Bash you can “export” a function, which then you can use the function in fzf preview or bind command like any other program. hello() { echo "hello ${1}" } export -f hello find ./* -maxdepth 0 | fzf --preview='hello {}'
Nice scripts. I want to give an advice you may or may not know. In Bash you can “export” a function, which then you can use the function in fzf preview or bind command like any other program.
hello() { echo "hello ${1}" } export -f hello find ./* -maxdepth 0 | fzf --preview='hello {}'