Saturday, January 7, 2017

Re: Issue with using gvim system() and fzy

On 2017-01-07, Justin M. Keyes wrote:

> On Jan 6, 2017 17:09, "justrajdeep" wrote:

>> Having an issue while doing a system() call with fzy(https://github.com/
>> Dkendal/fzy-vim)from inside gvim
>>
>> Code snippet
>>
>>   silent let output = system("ag -l -g '' --nocolor | fzy")
>>
>>   Decho(1)
>>   Decho (output)
>>   Decho(2)
>>   Decho(3)
>>
>>
>> The output is
>>
>>     1
>>     Failed to open /dev/tty^J
>>     2
>>     3
>>
>>
>> If i remove fzy from the command the result is fine. Can someone please
>> help me debugging the issue?

> Most likely, fzy wants to write to a tty, not a file.

Looking at the web page https://github.com/jhawthorn/fzy, it's
pretty clear that fzy writes directly to a terminal, separately from
its stdout, which vim running in a termina provides, but which gvim
doesn't.

Regards,
Gary

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: