maralla / completor.vim

Async completion framework made ease.
MIT License
1.31k stars 62 forks source link

Filename completion stalls #158

Open mathieulongtin opened 6 years ago

mathieulongtin commented 6 years ago

Whenever I type a / in Python code, completor stalls for a few seconds while reading a file list.

Digging a little, I switched Filename to "sync = False", this makes the stall more bearable. Either that, or raise the completion_delay.

Would there be a way filename completer to only kick in after at a few character after the /?

maralla commented 6 years ago

I pushed a commit to improve filename completion. Can you please update and check it again?

mathieulongtin commented 6 years ago

It seems faster, but now it doesn't complete if there are two "/" on the same line, even if they have a space in them.

In a Python comment, it tried to complete a / with function names.

maralla commented 6 years ago

If you type // it should complete. But if you type / / it might not complete because completor treats the whole path / / as a file path.

mathieulongtin commented 6 years ago

Sorry for not reporting earlier. It still stalls. It's not my file system, "find / -maxdepth 1" takes 30ms.

I'll try to dig into how it gets the list of files.