Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--reverse and --preview not work #3603

Closed
2 of 7 tasks
ZreXoc opened this issue Jan 29, 2024 · 5 comments
Closed
2 of 7 tasks

--reverse and --preview not work #3603

ZreXoc opened this issue Jan 29, 2024 · 5 comments

Comments

@ZreXoc
Copy link

ZreXoc commented Jan 29, 2024

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

Info

  • OS
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Shell
    • bash
    • zsh
    • fish

Problem / Steps to reproduce

fzf:
image

fzf --preview='head -$LINES {}'
image

fzf --reverse
image

no difference between them

@LangLangBart
Copy link
Contributor

Have you assigned the environment variable FZF_DEFAULT_OPTS 1?

printenv FZF_DEFAULT_OPTS
# --ansi --reverse --preview-window 'hidden'

Do you notice a difference when running:

FZF_DEFAULT_OPTS="" fzf --preview='head -$LINES {}'

Footnotes

  1. junegunn/fzf: README - Environment Variables

@junegunn
Copy link
Owner

What's the output of type fzf?

@ZreXoc
Copy link
Author

ZreXoc commented Jan 30, 2024

What's the output of type fzf?

$ type fzf
fzf is /usr/bin/fzf

@junegunn
Copy link
Owner

junegunn commented Feb 2, 2024

All the tests are passing, so it's clear that there is no issue regarding the options.

$ type fzf
fzf is /usr/bin/fzf

Make sure that the file is a valid fzf binary. Not some shell script that calls fzf without properly passing the arguments.

@ZreXoc
Copy link
Author

ZreXoc commented Feb 3, 2024

All the tests are passing, so it's clear that there is no issue regarding the options.

$ type fzf
fzf is /usr/bin/fzf

Make sure that the file is a valid fzf binary. Not some shell script that calls fzf without properly passing the arguments.

you're right. It's the problem with https://github.com/unixorn/fzf-zsh-plugin. It automatically installs the fzf and add it to $PATH, which causes the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants