Fzf: Unable to open files directly from fzf

Created on 15 Apr 2016  路  3Comments  路  Source: junegunn/fzf

When I press 'Enter' on a file in the list it does not open but the name and path is printed in the terminal. I'm running fzf by typing fzf and hitting enter. Ideally I'd like to open text files in neovim.

  • Category

    • [x] fzf binary

    • [ ] fzf-tmux script

    • [ ] Key bindings

    • [ ] Completion

    • [ ] Vim

    • [ ] Neovim

    • [ ] Etc.

  • OS

    • [ ] Linux

    • [x] Mac OS X

    • [ ] Windows

    • [ ] Etc.

  • Shell

    • [x] bash

    • [ ] zsh

    • [ ] fish

question wontfix

Most helpful comment

fzf is designed to be a 'Unix filter' meaning it reads from stdin and prints to stdout. If no stdin pipe is provided, it lists files from the current directory as a useful default.

To specialise the behaviour, you can write a short shell script or alias. For example:

alias v='nvim $(fzf)'

See the 'Usage' section of the README and the wiki for many more interesting examples.

All 3 comments

fzf is designed to be a 'Unix filter' meaning it reads from stdin and prints to stdout. If no stdin pipe is provided, it lists files from the current directory as a useful default.

To specialise the behaviour, you can write a short shell script or alias. For example:

alias v='nvim $(fzf)'

See the 'Usage' section of the README and the wiki for many more interesting examples.

@mjwestcott Thanks :)

Thanks @mjwestcott @junegunn Apologies for clogging up the issues, will check the 'Usage' section.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sandric picture sandric  路  3Comments

leonklingele picture leonklingele  路  3Comments

ahmedelgabri picture ahmedelgabri  路  3Comments

sassanh picture sassanh  路  3Comments

aleclarson picture aleclarson  路  3Comments