thingsiplay ,
@thingsiplay@beehaw.org avatar

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 {}'
redbr64 ,
@redbr64@lemmy.world avatar

Seems interesting. Could you explain the usage a little more clearly?

Blaze OP ,
@Blaze@lemmy.zip avatar

I am only reposting this unfortunately, but you can probably open an issue on the Github to ask the owner to detail a bit more the scripts: https://github.com/warrior0x7/xlotus

redbr64 ,
@redbr64@lemmy.world avatar

Ah thanks, I assumed you were the creator

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • linux@programming.dev
  • test
  • worldmews
  • mews
  • All magazines