blink.cmp
blink.cmp copied to clipboard
fix: don't duplicate `.` when completing hidden files in path source
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
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.
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