junegunn / junegunn/fzf

Option '--height' destroys results on stdout

Open
#2,015 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
83k
Forks
2.9k
Avg merge
17h 8m
Merged PRs (30d)
10

Description

- [x] I have read through the manual page (`man fzf`)
- [x] I have the latest version of fzf
- [x] I have searched through the existing issues

## Info

- OS
- [x] Linux
- [ ] Mac OS X
- [ ] Windows
- [ ] Etc.
- Shell
- [x] bash
- [ ] zsh
- [ ] fish

## Problem / Steps to reproduce

If running e.g. `fzf --height=30% --bind=alt-enter:"execute(echo TEST)"` and hitting `alt-enter`, the text `TEST` is **not** printed although the command seems to be executed (can be tested with e.g. `touch`).
It works without the option `--height`. It also works if stdout is piped to a file directly (`fzf [...] >/tmp/testfile`), but it does not work if piped through `cat` (`fzf [...] | cat`).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.