Skip to content

Long file paths in lsp-ui-peek-find show only prefix #744

Description

@nenorbot

When working with highly nested directories, the paths shown in the file list get truncated to just their prefix. As a result, the most meaningful parts of the path are often lost (package/modules/file name/etc).

For example, in Rust, when finding references/implementations of a type that's used across many dependencies, the file list might only show identical entries for /home/myuser/.cargo/registry/src/github..., making the file list harder to work with.

I know it's possible to disable showing directories with lsp-ui-peek-show-directory, but the directories can have interesting information like project name or module paths.

I think showing the path suffix rather than the prefix would be more helpful in these cases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions