bug: Telescope path_display is not respected
- Dominant language
- Lua
- Stars
- 717
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
### Did you check docs and existing issues?
- [x] I have read the Grapple docs
- [x] I have searched the existing issues of Grapple
### Neovim version (nvim -v)
NVIM v0.11.4
### Operating system/version
EndeavourOS
### Describe the bug
`Telescope grapple tags` shows full file paths, so when file path is long I don't see file names at all which makes it pretty hard to navigate. I have tried to set `path_display` to `smart` or `truncate` in Telescope settings:
```lua
{
"nvim-telescope/telescope.nvim",
opts = {
defaults = {
path_display = {
"smart", -- or "truncate"
},
},
},
},
```
which works in default pickers, but does not work for Grapple.
As I see here Grapple does not respect this option:
https://github.com/cbochs/grapple.nvim/blob/b41ddfc1c39f87f3d1799b99c2f0f1daa524c5f7/lua/telescope/_extensions/tags.lua#L36
It would be nice to make Grapple truncate file names by default at least.
### Steps To Reproduce
Set `path_display` to `smart` or `truncate` in Telescope opts and run `Telescope grapple tags`
### Expected Behavior
Should truncate file paths
### Repro
```Lua
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in lua/telescope/_extensions/tags.lua at the path-display handling linked in the issue, then reproduce with Telescope's path_display set to smart or truncate and run Telescope grapple tags. Confirm the picker uses the configured display behavior, including for long paths, and verify that file names remain visible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, neovim
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100