You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I used to do something like this: fzf-image() { image=$(fd -t f -d 1 | fzf --cycle --preview="kitty +kitten icat --clear --transfer-mode file; \ kitty +kitten icat --place "256x17@15x15" --scale-up --transfer-mode file {}") [ -z "$image" ] || printf $(curl -# "https://0x0.st" -F "file=@${image}")|xsel }
so that I could easily pick an image from a directory and paste it into an online pastebin. I had another function that scraped a fandom website and displayed character thumbnails alongside their names as well. I know this may not be an "intended" functionality but I found it really fun and really useful.
However after a somewhat recent update sometime this past month, it stopped working. Does anybody have any idea why that might be the case? or maybe there is a workaround? If its something that changed with fzf (which it seems the most likely case since its the only changing factor) then maybe I should build fzf from an older commit but idk.
I'm curious if anyone else has used fzf this way or if there is something similar to this that I could try? Nsxiv sort of works but I cant list structured information next to an image so its not really helpful in a lot of situations.
If I wanted to make a FIFO or some kind of socket that would allow Fzf to talk to a program that could display an image how would I go about getting Fzf to consistently stream information to that socket/fifo?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So I used to do something like this:
fzf-image() { image=$(fd -t f -d 1 | fzf --cycle --preview="kitty +kitten icat --clear --transfer-mode file; \ kitty +kitten icat --place "256x17@15x15" --scale-up --transfer-mode file {}") [ -z "$image" ] || printf $(curl -# "https://0x0.st" -F "file=@${image}")|xsel }
so that I could easily pick an image from a directory and paste it into an online pastebin. I had another function that scraped a fandom website and displayed character thumbnails alongside their names as well. I know this may not be an "intended" functionality but I found it really fun and really useful.
However after a somewhat recent update sometime this past month, it stopped working. Does anybody have any idea why that might be the case? or maybe there is a workaround? If its something that changed with fzf (which it seems the most likely case since its the only changing factor) then maybe I should build fzf from an older commit but idk.
I'm curious if anyone else has used fzf this way or if there is something similar to this that I could try? Nsxiv sort of works but I cant list structured information next to an image so its not really helpful in a lot of situations.
If I wanted to make a FIFO or some kind of socket that would allow Fzf to talk to a program that could display an image how would I go about getting Fzf to consistently stream information to that socket/fifo?
Beta Was this translation helpful? Give feedback.
All reactions