Skip to content

Ability to make file name more visible in file path #2014

@GuillaumeLagrange

Description

@GuillaumeLagrange

Is your feature request related to a problem? Please describe.
When I use git_files or find_files on large project with a lot of directories, it is sometimes a bit hard to spot the filename from the rest of the path.

Describe the solution you'd like
I would really love to have a built-in option to bolden/put a colot emphasis on the file name in the results so I can quickly spot out the file name.

Describe alternatives you've considered
I've considered

            -- Format path as "file.txt (path\to\file\)"
            path_display = function(opts, path)
              local tail = require("telescope.utils").path_tail(path)
              return string.format("%s (%s)", tail, path)
            end,

But I am not sure how to handle coloring/bolding output in lua, I am a bit unfamiliar with the language.

Additional context
I would love to open a PR for this if you would have this feature, I may need a bit of help to get started though.

Thanks for the awesome work you guys have been doing !

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancement to performance, inner workings or existent features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions