On Thu, Oct 25, 2018 at 10:47:32AM -0400, Curtis wrote:
> Just in case anyone else is trying to use fzf in the same way.
>
> I "solved" the problem by using the system clipboard instead of trying
> to read directly from fzf. I'm using a shell script because I don't
> know if it's possible to pipe a file to a system command using
> picolisp. I'm sure there is a better way but...
>
> locations.sh:
> #!/bin/bash
> cat locations.csv | fzf --multi | xclip
There is in fact a way, but it is a bit ugly. I don't have fzf installed, so
I did not test, but it should be something like:
(pipe
(in "locations.csv"
(out '("fzf" "--multi")
(echo) ) )
(out '("xclip") (echo)) )
Or, of course, you can load the task upon a shell:
(call "sh" "-c" "cat locations.csv | fzf --multi | xclip")
☺/ A!ex
--
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe