From: "Shuguang Sun" <shuguang79@qq.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Emacs can't capture fzf output in Windows 10
Date: Mon, 2 Mar 2020 12:25:48 +0800 [thread overview]
Message-ID: <tencent_7CE77BEB2C9CCC5972C0EFA6577447FCB908@qq.com> (raw)
Dear all,
I'm trying to use fzf (junegunn/fzf) in windows, however it seems emacs can't capture the output of fzf.
Example: fzf with -filter will be in filter mode and do not start interactive finder.
- In shell (cmd): "fzf.exe --filter=tmp" will not exit
- In shell (cmd): "fzf.exe --filter=tmp > aa.txt" will not exit
- (call-process "cmd.exe" nil t nil "/C" "start" "fzf" "--filter=tmp") will give a flash window (with list of findings) and print 0 in emacs.
- (shell-command "fzf --filter=tmp") will lead to a message (Shell command failed with code 1 and no output)
- (shell-command-to-string "fzf --filter=tmp") give a empty string
However if I run "fzf --filter=tmp" in the CMD box it will provide a list of finding, and "fzf --filter=tmp > aa.txt" will print the findings to file aa.txt.
It can't run fzf in interactive mode as I understand there is no true term for emacs in windows but why it can't be run in filter mode?
It is not put in the bugs report as I don't understand the mechanism whether it is a bug.
- Windows 10
- Emacs 28 (I think is not only for 28)
System information:
In GNU Emacs 28.0.50 (build 2, x86_64-w64-mingw32) of 2020-02-27
Repository revision: 07da629926daf849aab248175c88cf53a5e21558
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version 10.0.18362
System Description: Microsoft Windows 10 Enterprise (v10.0.1903.18362.657)
Thanks,
Shuguang Sun
next reply other threads:[~2020-03-02 4:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-02 4:25 Shuguang Sun [this message]
2020-03-02 8:42 ` Emacs can't capture fzf output in Windows 10 Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_7CE77BEB2C9CCC5972C0EFA6577447FCB908@qq.com \
--to=shuguang79@qq.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).