[shell mode] Add folding helper reference