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

locations.l:
(de get-visited-locations ()
   (call "./locations.sh")
   (make
      (in '(xclip "-o")
         (until (eof)
            (link (csv-to-lst (line T) "|")) ) ) ) )

(de csv-to-lst (csv separator)
   (mapcar pack (split (chop csv) separator)) )

This seems to work ok for now. I saw bug reports with persons
reporting a similar problem.
https://github.com/junegunn/fzf/pull/1266
https://github.com/junegunn/fzf/issues/447
https://github.com/junegunn/fzf.vim/issues/458

-- 
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe

Reply via email to