nvim-telescope / telescope-frecency.nvim

A telescope.nvim extension that offers intelligent prioritization when selecting files from your editing history.
MIT License
777 stars 37 forks source link

Telescope `path_display = { "truncate" }` default option is not applied #47

Closed smjonas closed 5 months ago

smjonas commented 3 years ago

I have set up Telescope like this:

telescope.setup {
    defaults = {
        path_display = { "truncate" }
    }
}

When using a builtin picker such as find_files this option is applied. However, when running the command Telescope frecency with this default option, the path is not truncated in the picker window. The same issue occurs when setting the option explicitly as in Telescope frecency path_display="truncate".

Different options such as Telescope frecency selection_caret="test" are applied, however.

Conni2461 commented 3 years ago

path_display is newer and nobody has moved to it yet. We got a PR a couple of days ago and i just merged it.

https://github.com/nvim-telescope/telescope-frecency.nvim/commit/4c46d468595d28d92bf340256e6cbbc3748ae6f0

Would be nice if you could test it and report back when it doesnt work (i havent tested it yet). I would close this issue for now but if it doesnt work feel free to reopen :)

smjonas commented 3 years ago

Thank you, this fixed it!

delphinus commented 1 year ago

This problem occurs again on the current build. ref: https://github.com/nvim-telescope/telescope.nvim/issues/2712

delphinus commented 1 year ago

frecency has “workspace feature”, so that it tries to show paths truncated by cwd as the workspace. It ignores the default options for path_display in that process.

aayestashn commented 5 months ago

@delphinus Thanks for this amazing plugin is there any way to fix this issue ? Thanks again for your work

delphinus commented 5 months ago

@aayestashn sorry for late. This has been fixed. Now it respects path_display in telescope.setup or the command you typed. See #196 or README for the detail.

aayestashn commented 4 months ago

Thanks a lot @delphinus