nvimdev / dashboard-nvim

vim dashboard
MIT License
2.3k stars 187 forks source link

Duplicate recent files #338

Open sho-87 opened 1 year ago

sho-87 commented 1 year ago

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

glepnir commented 1 year ago

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 ?

sho-87 commented 1 year ago

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 \

glepnir commented 1 year ago

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

TheElegantCoding commented 1 year ago

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

ingenarel commented 2 months ago

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..