Use the cursor position for completion parsing.
Add a test for completion in the middle of a folder name