kien / ctrlp.vim

Fuzzy file, buffer, mru, tag, etc finder.
kien.github.com/ctrlp.vim
7.26k stars 676 forks source link

Support Vim 8.0 feature to avoid vim getting stuck. #724

Open skywind3000 opened 7 years ago

skywind3000 commented 7 years ago

CtrlP is a great plugin, but still not so perfect (comparing to similar function in IDEs or Emacs): Vim always get unresponsive for a very noticable time when I'm opening CtrlP.

It would be very nice if CtrlP can refresh in background when I am using Vim 8.

Possible solution 1: Incremental Collecting in a timer.

Divide the whole file collecting job into pieces, and put them in timers (eg, a 20Hz interval), analyse fixed amount of files in an interval than refresh the ctrlp incrementally (just like similar plugins in emacs/IDE).

Possible solution 2: Collecting the files on background jobs .

Collecting all the files in a background job and output to a temporary file. And analyse/display them step by step in a timer.

Possible solution 3: Collecting the files on a python thread.


CtrlP will work perfectly in Vim 8 just like Emacs/IDEs.

bdfish commented 7 years ago

This project is unmaintained, You should use this instead. https://github.com/ctrlpvim/ctrlp.vim

mahemoff commented 6 years ago

To @bdfish's point, see https://github.com/ctrlpvim/ctrlp.vim/issues/349. It's still not possible unfortunately.