Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 09:55
    junegunn unlabeled #1314
  • Jan 31 2019 09:55
    junegunn reopened #1314
  • Jan 31 2019 09:47
    junegunn commented #1488
  • Jan 31 2019 09:43
    junegunn closed #1485
  • Jan 31 2019 09:43

    junegunn on master

    Update build instruction Close… (compare)

  • Jan 31 2019 09:31
    taranjlu commented #1486
  • Jan 31 2019 09:30
    taranjlu commented #1486
  • Jan 31 2019 08:33
    sudo-nice commented #1483
  • Jan 31 2019 08:24
    yglukhov commented #1483
  • Jan 31 2019 07:32
    lewisthompson commented #1489
  • Jan 31 2019 06:28
    lewisthompson edited #1489
  • Jan 31 2019 06:27
    lewisthompson edited #1489
  • Jan 31 2019 06:27
    lewisthompson opened #1489
  • Jan 31 2019 05:10
    lungten commented #1487
  • Jan 31 2019 04:48
    lungten commented #1486
  • Jan 31 2019 04:41
    drhayes commented #1487
  • Jan 31 2019 04:38
    lungten commented #1487
  • Jan 31 2019 04:26
    anoopd edited #1488
  • Jan 31 2019 03:47
    anoopd edited #1488
  • Jan 31 2019 03:44
    anoopd edited #1488
Junegunn Choi
@junegunn
@jdsutherland You mean the colors are off? I'm not sure but you might want to check out :help terminal-emulator-configuration.
@plagov I'm not a Windows user so I haven't had a chance to try it, but some users have reported that the Windows binary works on Cygwin. See junegunn/fzf#933
Junegunn Choi
@junegunn
@DanielFGray Actually I experimented with the idea for a bit with limited success. It seemed that there's no nice and simple way to keep restarting subprocesses while reading the output streams. I may revisit the idea later, but for now it's not ready.
@megalithic :point_right: :help terminal-emulator-configuration
Sascha Diefenthäler
@alloro
hi ladies, is theree a possibility to take the first command which fzf finds as a result. I want to use it in a script where fzf should match a given directory
Jeff Sutherland
@jdsutherland
i'm trying to pass every line of a text file as input to a command using execute inside a preview. i can't seem to get the syntax right though. i get cat: {}: no such file or directory for:
find ~/Documents/playlists -type f | fzf-down-full -m \
    --preview "(highlight -O ansi {} || cat {}) 2> /dev/null" \
    --bind "ctrl-m:execute:
              qlmanage -p `cat {}`"
i'm guessing i need to use xargs. i've looked at junegunn/fzf#265 as a reference
(the idea is to preview a m3u playlist file and open quicklook with thumbnail images of each video)
Jeff Sutherland
@jdsutherland
i was making that way harder than i needed to
    --bind "ctrl-m:execute:
    cat {} | xargs qlmanage -p"
Daniel Santos Dantas
@dansdantas
Hi, anyone having a little delay using tmux + neovim + fzf?
After i select the file and pressing enter, the screen briefly display everything without colors then open the file.
This does not happen on vim.
Sebastian Schwarz
@seschwar
when i input qux after invoking printf '%s\n' foo bar | dmenu qux is printed to stdout
when i input qux after invoking printf '%s\n' foo bar | fzf fzf exits with a status code of 1
is there a way to make fzf behave the same why as dmenu?
outputting the user's input if nothing else is matched
Sebastian Schwarz
@seschwar
ok, --print-query was what i was looking for
Kuo-tung Kao
@kjelly
Hello everybody. Is it possible that open file without closing search buffer when using Ag command ?
Is it possible that open file without closing search buffer when using Ag command in vim?
Junegunn Choi
@junegunn
@ya790206 No, it's not. But you can select multiple items with tab, shift-tab, or alt-a and build quickfix list out of them.
Chris Johnson
@chrisjohnson
Can somebody point me to some documentation that differentiates between what is provided with the .vim plugin that comes with fzf vs the actual fzf.vim plugin?
For example I know all the commands like :Commits and :History don't come with the former
so what exactly is it providing me?
Is it just the base compatibility wrapper that fzf.vim uses? Or does it have some other set of features
Chris Johnson
@chrisjohnson
Looks like it. Just curious if it provides anything else in terms of user features
Jeff Sutherland
@jdsutherland
When using :FzfFiles in vim, if the width is small (long filename or short tmux pane) input is limited by the size. In this case there is only room for 1 input character. Is there a solution other than to increase the available space (e.g. zoom pane in tmux)?
image.png
Junegunn Choi
@junegunn
@chrisjohnson See https://github.com/junegunn/fzf/blob/master/README-VIM.md
@jdsutherland Hmm, you can set up a key binding for toggling preview window, but I think :Files should trim the prompt string if the width of the screen is that small. I'll see what I can do.
Junegunn Choi
@junegunn
@jdsutherland junegunn/fzf.vim@e7928d1 should help!
Jeff Sutherland
@jdsutherland
Nice! Thanks @junegunn!
Harrison Wright
@whwright
Hello. I am trying to include hidden directories in my alt-C command but am having some issues reverse engineering the default command to figure out what I want. I have found the default FZF_ALT_C_COMMAND here and have figured out the part excluding hidden files is \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune but I'm not sure what I want and what I don't. Can anyone assist me?
Oh wow just noticed the last activity is from September!
Anders Damsgaard
@anders-dc
Hi, thanks for FZF! Is there a way to restart the current search in the parent directory with the search string intact? The use case is that I start fzf or :FZF, and realize the file I'm looking for is outside of the current working path's subdirectories. I was hoping for a keybind (e.g. C-u) to restart the search in contents of the parent directory.
Edgar Hipp
@edi9999
@anders-dc I think you can achieve that, but you have to write this behaviour yourself, fzf is just a filter like grep, it doesn't what is the input or output
Anders Damsgaard
@anders-dc
edi9999: Thank you for clarifying!
Chris
@ipatch
👋 hello, I’ve been messing around with fzf for the past couple of days and I’d like to have the preview feature enabled by default, I’m presently using fish shell 2.7.1 Is there any trick to getting this done?
Paweł Bogut
@pbogut
@ipatch set -xg FZF_DEFAULT_OPTS --preview='head -n50 {}' should work. You can set any defaults in FZF_DEFAULT_OPTS variable.
Chris
@ipatch
@pbogut thank you very much 👌
Chris
@ipatch
@pbogut FYI, got around to experimenting with fzf today and fish v2.7.1 doesn’t like the {} in the above variable you mentioned.
Chris
@ipatch
i’m using fzf with neovim, and when i switch between open buffers Neovim isn’t preserving the code fold settings for the file, ie. if I have a file open toggle a code fold to close / collapse a code fold in a file, then switch to another buffer and make some changes with a file, then go back to the buffer with the code fold setting collapsed it is open.
Chris
@ipatch

hi 👋 I’m trying to get deoplete and fzf to coexist but have been running into issues 🤷‍♂️

when i use fzf to switch between open buffers.

Screen Shot 2018-03-24 at 9.24.20 PM.png

i get this error 👇

Screen Shot 2018-03-24 at 9.24.28 PM.png

monouser7dig
@monouser7dig
Hallo, been using fzf for some time, I'd like to fuzzy search the godoc standard library full text or at least functions/struct names, could not find an example for this yet though and no option in the godoc command line help page. Does someone have an idea how to do that?
Daniel Gray
@DanielFGray
Simon Leischnig
@simlei
Hi
is there a way to install fzf in a custom directory, and is the location of the config file also changeable?
But this is not the main reason I'm here
Simon Leischnig
@simlei

The reason I'm here is a leak of the backend processes for fzf on my machine.
I am using fd as recommended, with fzf. From the many examples, I configured fzf to open vim on the selection with a bind to C-e, this being the bind portion of invoking fzf:

        printf 'ctrl-e:execute(${EDITOR:-vim} {})+abort,'

this is the full config:

fzf-binds() {
        printf 'ctrl-v:execute(less -K {}),'
        printf 'ctrl-e:execute(${EDITOR:-vim} {})+abort,'
        printf 'ctrl-u:execute-silent(xclip -selection clipboard < {}),'
        printf 'ctrl-y:execute-silent(echo {} | xargs echo -n | xclip -selection clipboard),'
        printf 'ctrl-r:execute-silent(realpath {} | xargs echo -n | xclip -selection clipboard)'
}

export FZF_DEFAULT_OPTS="--bind '$(fzf-binds)'"

# Use ~~ as the trigger sequence instead of the default **
export FZF_COMPLETION_TRIGGER='**'

# Options to fzf command
export FZF_COMPLETION_OPTS='+c -x'

# Use fd (https://github.com/sharkdp/fd) instead of the default find
# command for listing path candidates.
# - The first argument to the function ($1) is the base path to start traversal
# - See the source code (completion.{bash,zsh}) for the details.
_fzf_compgen_path() {
  fd --hidden --follow -I --exclude ".git" . "$1"
}

# Use fd to generate the list for directory completion
_fzf_compgen_dir() {
  fd --type d --hidden -I -follow --exclude ".git" . "$1"
}

export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude ".git"'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
My problem is, when I <C-e> on a file in fzf, it opens it and I'm happy. Later, I :qa in vim and return to the terminal, going after more business there. Just to find, that with every time I do that, invoking vim with <C-e>, the fd process keeps running in the background even after vim finished, even after the terminal is closed. Major resource leak... I am on 0.17.3, installed from the git clone using plain ./install
Simon Leischnig
@simlei
Also, I am getting an error when trying to use autocompletion like this:
cd ~/**error: Found argument '-f' which wasn't expected, or isn't valid in this context

                                                                                         USAGE:
                                                                                                   fd [FLAGS/OPTIONS] [<pattern>] [<path>...]

                                                                                                                                             For more information try --help
Would be grateful if you knew how I can fix it; I know it once worked, somehow...