dashboard-nvim icon indicating copy to clipboard operation
dashboard-nvim copied to clipboard

Duplicate recent files

Open sho-87 opened this issue 1 year ago • 5 comments

The recent files list shows duplicates of files on Windows because some plugins use / and others use \ as the path separator when opening the files.

Is there a way for dashboard to just standardize the windows paths and use the same separator, so the list isn't filled with duplicates?

image

sho-87 avatar Apr 07 '23 11:04 sho-87

mru read from v:oldfiles . echo v:oldfiles it should give same result. i don't use windows . why the file has different path sep ?

glepnir avatar Apr 07 '23 12:04 glepnir

I just opened 10 files using different plugins, like telescope, neo-tree etc and the MRU list all uses \ path sep, which is correct:

Screenshot 2023-04-07 050708

But when I use the dashboard hotkeys (1-9) to open one of those files, it changes the path sep to /, and it then shows up as a duplicate in MRU:

Screenshot 2023-04-07 050738

So I think dashboard is setting the windows path sep to / when opening a file, when all other plugins are setting it to \

sho-87 avatar Apr 07 '23 12:04 sho-87

dashboard do nothing it just read v:oldfiles and open. i don't use windows. if anyone want fix this pr welcome.

glepnir avatar Apr 07 '23 12:04 glepnir

this is acually related to this issue in telescope on windows telescope/#1683

TheElegantCoding avatar May 17 '23 13:05 TheElegantCoding

i'm having this issue too...

i think it's a problem with window's nvim here's the github issue that i found on nvim

https://github.com/neovim/neovim/issues/25033

btw if you already found a solution, please let me know..

ingenarel avatar Jun 18 '24 05:06 ingenarel