Import smart_auto_mappings: use a timer if available#708
Import smart_auto_mappings: use a timer if available#708blueyed wants to merge 6 commits intodavidhalter:masterfrom
Conversation
|
(Ignore my previous deleted comment.) I like this behaviour better than the existing behaviour. If I type Ideally, I would like to see two more changes:
|
|
@Flimm
The set
jedi-vim does no autocompletion while typing, but only on dots (with I will add special handling for And while we could have something for your use case there also, I think it would require to have a separate setting for this (or use something like
It might be better for you to just have a custom mapping maybe? |
|
I just tested this on my home Ubuntu 17.04 computer with vim 8.0, and I couldn't get suggestions or autocompletions to work after typing |
|
Hmm, @Flimm did you try? |
|
It works on my work computer (macOS, vim 8.0), just not on my Ubuntu 17.04 computer (vim 8.0). |
|
Is it Vim 8.0.0000 on both really? |
|
What does not work exactly? You could add some |
3176b49 to
d3f91c4
Compare
d3f91c4 to
1374268
Compare
|
Rebased on master for now. @Flimm |
|
Again, it works on my work computer (macOS), but not on my home computer (Ubuntu 17.04, vim 8.0, package version: 2:8.0.0095-1ubuntu3). Sorry, I realise that's not very useful, I hope to be able to find time to brush up on my vimscript and debug this, but it's not going to be in the next few days. For the record, I really dislike the old behaviour of typing for me without a timeout, I dislike it so much that I prefer this new behaviour, even when it doesn't anything at all on my Ubuntu computer. |
|
I see. For debugging:
|
414c646 to
3dfe547
Compare
3dfe547 to
aa55389
Compare
| endif | ||
| endif | ||
| return | ||
| elseif search('\m^\s*from\s\+[A-Za-z0-9._]\{1,50}\%#\s*$', 'bcn', line('.')) |
There was a problem hiding this comment.
The search should be done only in the timer callback (more lazy).
…lable Only start completion with `g:jedi#completions_enabled`. TODO: doc
aa55389 to
997bb16
Compare
Fixes #568.