blink.cmp icon indicating copy to clipboard operation
blink.cmp copied to clipboard

fix: don't duplicate `.` when completing hidden files in path source

Open starsprung opened this issue 11 months ago • 2 comments

Current the path auto-complete duplicates the . character when auto-completing dot files:

https://github.com/user-attachments/assets/528740a4-3f6d-4429-aaec-59a7286215b5

With corrected edit range for files with dot:

https://github.com/user-attachments/assets/0d4f759c-e4d5-419e-9d83-284b6ae24734

starsprung avatar Dec 14 '24 10:12 starsprung

I think this is more of a general issue than just path completions , take a look at #561, #555 , #541 , #46. and #321

So I guess we must find a way to fix this problem as a whole rather than just path completions.

Anyways I'm noone to say, its up to the author ofc.

voidstar-null avatar Dec 14 '24 15:12 voidstar-null

Looks good, but I think we should always return an edit range. We should split the path with / and get the range up to the cursor

saghen avatar Dec 15 '24 19:12 saghen