[yafuse]: add the process of auto completion;
          refactor code;
[yafuse]: refactor code for auto completion.