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

__fzf_history__illegal option: --height #1555

Open
2 of 15 tasks
pinggit opened this issue Apr 14, 2019 · 3 comments
Open
2 of 15 tasks

__fzf_history__illegal option: --height #1555

pinggit opened this issue Apr 14, 2019 · 3 comments

Comments

@pinggit
Copy link

pinggit commented Apr 14, 2019

  • Category
    • fzf binary
    • fzf-tmux script
    • Key bindings
    • Completion
    • Vim
    • Neovim
    • Etc.
  • OS
    • Linux
    • Mac OS X
    • Windows
    • Windows Subsystem for Linux
    • Etc.
  • Shell
    • bash
    • zsh
    • fish

exactly same as #832, but can't resolve by reinstall ..
this is cygwin64, worked perfectly earlier. not sure what i did to break it.

$ __fzf_history__illegal option: --height
usage: fzf [options]

Search
-x, --extended Extended-search mode
-e, --extended-exact Extended-search mode (exact match)
-i Case-insensitive match (default: smart-case match)
+i Case-sensitive match
-n, --nth=N[,..] Comma-separated list of field index expressions
for limiting search scope. Each can be a non-zero
integer or a range expression ([BEGIN]..[END]).
--with-nth=N[,..] Transform the item using index expressions for searc
-d, --delimiter=STR Field delimiter regex for --nth (default: AWK-style)

Search result
-s, --sort=MAX Maximum number of matched items to sort (default: 10
0)
+s, --no-sort Do not sort the result. Keep the sequence unchanged.

Interface
-m, --multi Enable multi-select with tab/shift-tab
--no-mouse Disable mouse
+c, --no-color Disable colors
+2, --no-256 Disable 256-color
--black Use black background
--reverse Reverse orientation
--prompt=STR Input prompt (default: '> ')

Scripting
-q, --query=STR Start the finder with the given query
-1, --select-1 Automatically select the only match
-0, --exit-0 Exit immediately when there's no match
-f, --filter=STR Filter mode. Do not start interactive finder.
--print-query Print query as the first line

Environment variables
FZF_DEFAULT_COMMAND Default command to use when input is tty
FZF_DEFAULT_OPTS Default options (e.g. "-x -m --sort 10000")

I noticed my version is old:
$ fzf --version
fzf 0.8.9 (Dec 24, 2014)

$ .fzf/bin/fzf --version
0.18.0 (ff95134)

$ which fzf
/usr/bin/fzf

$ export PATH=.fzf/bin/:$PATH

then I got:
$ __fzf_history__--height option is currently not supported on Windows

@junegunn
Copy link
Owner

Please note that I'm not a Windows user and I haven't had a chance to test the key bindings on Cygwin for a very long time, so I'm not sure how well they work on that platform.

fzf currently doesn't support --height on Windows, so that's why you're getting the message. You can try setting export FZF_CTRL_R_OPTS='--no-height' to work around the issue.

I also suggest that you take a look at #1341 and test it. /cc @kelleyma49

@r4d1um
Copy link

r4d1um commented Nov 6, 2019

Please note that I'm not a Windows user and I haven't had a chance to test the key bindings on Cygwin for a very long time, so I'm not sure how well they work on that platform.

fzf currently doesn't support --height on Windows, so that's why you're getting the message. You can try setting export FZF_CTRL_R_OPTS='--no-height' to work around the issue.

I also suggest that you take a look at #1341 and test it. /cc @kelleyma49

This does not appear to work in zsh in wsl on linux even if I add it to my ~/.zshrc

@qingcdft
Copy link

delete "--height" from .fzf/shell/key-bindings.bash

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

No branches or pull requests

4 participants