Add cn-toggle-folding function

Could you pull it?