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

Update breaks bash history completion #832

Closed
4 of 15 tasks
agauniyal opened this issue Feb 6, 2017 · 5 comments
Closed
4 of 15 tasks

Update breaks bash history completion #832

agauniyal opened this issue Feb 6, 2017 · 5 comments

Comments

@agauniyal
Copy link

  • 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

I've installed fzf via usual vim installation ie. Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }, but after updating it today when I invoked it by pressing Ctrl+R, it responded with an error -

`__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 search
    -d, --delimiter=STR   Field delimiter regex for --nth (default: AWK-style)

  Search result
    -s, --sort=MAX        Maximum number of matched items to sort (default: 1000)
    +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")

Did I miss something?

@junegunn
Copy link
Owner

junegunn commented Feb 6, 2017

fzf --version should return 0.16.0 or above. Check the output of which fzf. My guess is that it is pointing to a different version of fzf.

@agauniyal
Copy link
Author

agauniyal commented Feb 6, 2017

yes, but I don't know how any of this happened after the update -

> which fzf
/home/agauniyal/.fzf/bin/fzf

> /home/agauniyal/.fzf/bin/fzf --version
fzf 0.8.9 (Dec 24, 2014)

> fzf --version
fzf 0.8.9 (Dec 24, 2014)

should I delete the directory and reupdate it?

@junegunn
Copy link
Owner

junegunn commented Feb 6, 2017

No just rerun the install script and see if it helps.

@agauniyal
Copy link
Author

Yup it works now -

> fzf --version
0.16.4

Still not sure how that happened though..

@junegunn
Copy link
Owner

junegunn commented Feb 6, 2017

Yeah, that's weird. I think I'm going to remove the old Ruby version for good to avoid further confusion.

junegunn added a commit that referenced this issue Feb 6, 2017
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

2 participants