Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CursorHold to update the list of matching items #37

Closed
urandom opened this issue Nov 23, 2011 · 2 comments
Closed

Use CursorHold to update the list of matching items #37

urandom opened this issue Nov 23, 2011 · 2 comments

Comments

@urandom
Copy link

urandom commented Nov 23, 2011

It would be an improvement if, when the ctrlp window appears, the updatetime is changed to something small, and the list of matching items is only updated when that autocommand is triggered.

That would speed things up quite a bit, when you know what you want to write

@kien
Copy link
Owner

kien commented Nov 23, 2011

I think I had this same idea when writing prompt.vim (which eventually evolved into ctrlp.vim). There was also a partial implementation as the now removed ctrlp_live_update option and the <c-^> mapping. I thought it was a little bit inconvenient to have to wait or hit something for the list to update.

But I see your point, so I'll definitely give this another try.

Thanks!

@kien kien closed this as completed in ef9e072 Nov 28, 2011
@kien
Copy link
Owner

kien commented Nov 28, 2011

Added. You can enable/disable it or set the delay time with this option:

let  g:ctrlp_lazy_update = 0

The default delay time is 250ms.

kien added a commit that referenced this issue Nov 28, 2011
* Only change 'updatetime' if lazy_update is enabled.
  Continue #27 and #37.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants