CheckAttach icon indicating copy to clipboard operation
CheckAttach copied to clipboard

External Browser Problem

Open rafaeluriarte opened this issue 6 years ago • 5 comments
trafficstars

Thanks for the suggestion for using together with mutt. However, I am having difficulties to execute another "file browser" with your plugin. Here is my configuration:

let g:checkattach_filebrowser='/usr/bin/find /home/XX/Desktop /home/XX/Documents/Dropbox -not -path "vim" -type f | /usr/bin/fzf -m'

The output of the command if run it in the command line is: /home/XX/Documents/Dropbox/EnvSimulator.class /home/XX/Documents/Dropbox/EdgeNodeHost.class /home/XX/Documents/Dropbox/EdgeNodeHost2.class

However, it does not even open the "file browser" and there are no error. Did I misunderstand something?

Thank you

rafaeluriarte avatar Apr 23 '19 15:04 rafaeluriarte

are you trying to pipe the output back to vim (e.g. trying to run vim recursively)?

chrisbra avatar Apr 23 '19 15:04 chrisbra

No, no idea how I could do that (sorry for my ignorance). Could it be something like?

let g:checkattach_filebrowser='fzf | vim -'

In any case, when I try to call straight :AttachFile it shows:

"unknown option: ."

rafaeluriarte avatar Apr 23 '19 15:04 rafaeluriarte

It should be rather:

let g:checkattach_filebrowser='fzf'

In any case, when I try to call straight :AttachFile it shows: "unknown option: ."

I have no idea where that comes from, some strange modeline?

chrisbra avatar Jul 16 '19 12:07 chrisbra

I just came across this issue. The "unknown option: ." is because fzf doesn't support a path like . as an argument.

I have a working branch with better fzf support. I need to keep testing it out but I can open a PR for it in the future.

nickwynja avatar Nov 15 '19 14:11 nickwynja

sure, please go ahead

chrisbra avatar Nov 17 '19 16:11 chrisbra