Repository navigation
Commit 5dc0164
committed
fix: handle file paths with line references in autocomplete
Fixes anomalyco#3910
When pasting file paths with line references like @file.tsx:39-42,
the autocomplete system was treating the entire string (including :39-42)
as a filename, causing no matches and blocking submission.
Changes:
- Strip line reference patterns (:N or :N-M) before file search
- Auto-dismiss autocomplete when no results found after 300ms
- Preserves normal autocomplete behavior for typing
This enables tools like Neovim's SideKick.nvim that generate
formatted paths with line references to work correctly.
Co-authored-by: Claude (Anthropic AI Assistant)1 parent 16c8c0f commit 5dc0164
1 file changed
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
328 | 333 | | |
329 | 334 | | |
330 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
331 | 359 | | |
332 | 360 | | |
333 | 361 | | |
| |||
0 commit comments