Skip to content

New version of "fd" always prepend "./" in result file list #1749

@blahgeek

Description

@blahgeek

Expected behavior

When finding files, the list of files should not have "./" prefix. Otherwise, it would result in duplicated entries with recent visited files.

Actual behavior

With newest version of "fd", the list of files has "./" prefix.

Steps to reproduce the problem

Upgrade "fd" to version 8.3.1 or greater, clear cache and use projectile-find-file in a non-version-control directory

The change is mentioned in the changelog:
https://github.com/sharkdp/fd/blob/master/CHANGELOG.md#bugfixes-3

Adding option --strip-cwd-prefix would fix this issue. However, older version of fd cannot recognize this option.

Environment & Version information

linux, fd 8.3.1

Projectile version information

4e6f66c

Emacs version

28.0.91

Operating system

archlinux

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions