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

FD integration relative path prefix #2698

Closed
5 of 11 tasks
run2cmd opened this issue Dec 29, 2021 · 3 comments
Closed
5 of 11 tasks

FD integration relative path prefix #2698

run2cmd opened this issue Dec 29, 2021 · 3 comments

Comments

@run2cmd
Copy link

run2cmd commented Dec 29, 2021

  • 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
    • cmd

Problem / Steps to reproduce

I'm getting .\ prefix for all files when when using fd command for searching files. When using with VIM this might cause some of my plugins do not work as the path contains .\ prefix in it and looks like this: c:\code\project\.\src\file.js

Here is an example with Windows dir command and fd command. Take a look as the 1st one does not have \. prefix but with fd it does.

fzf_fd_test

@junegunn
Copy link
Owner

junegunn commented Jan 6, 2022

fzf simply reads the output of fd. You should ask this to the maintainers of fd.

@junegunn junegunn closed this as completed Jan 6, 2022
@charego
Copy link

charego commented Jan 9, 2022

This appears to be the default behavior since fd v8.3.0:

Always show the ./ prefix for search results unless the output is a TTY or --strip-cwd-prefix is set, see #760 and #861 (@jcaplan)

@run2cmd
Copy link
Author

run2cmd commented Jan 9, 2022

@charego this solved my issues. Thanks.

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