snippet: work in progress on new snippet fixes.

Still needs some work, like updating chunks and relayout of text marks.