Skip to content

helm-source-locate in helm-for-files shows only basenames instead of full paths #2713

Open
@ncaq

Description

@ncaq

What happened?

The locate source section in helm-for-files has started displaying only filenames without their directory paths. Previously, the locate results showed full paths including directories.

Expected behavior

The locate source in helm-for-files should display the full paths of files (including directory paths),
as it did before and as helm-locate currently does.
Without full paths, it's impossible to distinguish between files with the same name located in different directories (like multiple cargo.toml files across different repositories).

occur image

Image

How to reproduce?

  1. Run helm-for-files (or a customized version that includes helm-source-locate in its sources list)
  2. Enter a filename that exists in multiple directories on your system (e.g., cargo.toml)

The issue appears to be related to the :ff-transformer-show-only-basename parameter.
When manually calling helm with this parameter set to nil,
the full paths are displayed correctly:

(helm :sources helm-for-files-preferred-list
      :buffer "*helm for files*"
      :ff-transformer-show-only-basename nil)

Helm Version

Melpa or NonGnuElpa

Emacs Version

Emacs-29.1

OS

GNU/Linux

Relevant backtrace (if possible)


Minimal configuration

  • I agree using a minimal configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions