telescope.nvim icon indicating copy to clipboard operation
telescope.nvim copied to clipboard

Fix problem with firstname options and buffer view

Open Wordluc opened this issue 1 year ago • 5 comments

Fix issue: https://github.com/nvim-telescope/telescope.nvim/issues/3157#issue-2340997131

Wordluc avatar Jun 19 '24 08:06 Wordluc

Hmm.. I think this is an issue that plagues various other places involving plenary's Path class and windows paths with mixed path separators. This is probably best fixed upstream in plenary.

jamestrew avatar Jun 23 '24 14:06 jamestrew

@jamestrew why the problem is plenary? the problem seems to be vim.fn.getbufinfo(bufnr)[1], that return the "wrong" result

Wordluc avatar Jul 02 '24 15:07 Wordluc

This resolves the issue on my machine with Windows 11, together with path_display set to filename_first works very well

radlinskii avatar Aug 05 '24 20:08 radlinskii

This messes up unix paths. We could do a workaround but my preference is to fix this in plenary.

why the problem is plenary? the problem seems to be vim.fn.getbufinfo(bufnr)[1], that return the "wrong" result

I say this because we use plenary for all the cross-platform path stuff and the path from getbufinfo eventually gets fed into plenary.Path. If we fix the issue in plenary, we can fix this + like 3 other nearly identical issues.

I'll try to work on this week.

jamestrew avatar Aug 13 '24 02:08 jamestrew

Is there any news on this issue? I searched in Plenary's issues, but I didn't see one. Also didn't see one referenced in this PR. Thanks in advance!

thedeany avatar Jun 17 '25 20:06 thedeany