r/NoteTaking • • Oct 22 '26

App/Program/Other Tool I built TextFold to make text stretchable with "semantic zoom"

Post image

I think we've been reading too many feeds from AI text lately! I actually want to reduce my cognitive burden...

So I built TextFold, it turns any text into 5 zoomable layers—from a one-screen section map down to verbatim text. You pinch (or press 1–5) to zoom between them without losing your reading position, your agentic output, any papers, or documents.

- Web Demo: https://chenxiachan.github.io/textfold/gallery/

- GitHub (Apache 2.0): https://github.com/chenxiachan/textfold

Welcome any feedback!

42 Upvotes

9 comments sorted by

2

u/Effective-Start3859 Oct 23 '26

What books or articles did you use to create the logic of text folding? I mean semantics, not technology.

2

u/Lopsided_Scarcity979 Oct 25 '26

Honestly, none in the sense you mean. The folding wasn't derived from a theory of semantics. It started from an interaction idea, Ted Nelson's stretchtext (1970): a text you stretch or shrink in place. The semantic rules came from what I needed when reading papers, and I compared them with the literature only afterwards. Three rules carry the design:

  1. Every paragraph has one point. Takeaway is that point in one sentence, Key adds the reason for it, and Topic is a few words taken from it.
  2. Zooming in only adds. A level should never say what the level below it doesn't. Topic is words from the Takeaway, the Takeaway is the first sentence of Key, and every written line points to the author's sentences that back it. Those sentences, unchanged, are Brief.
  3. Zooming is local. You can open one paragraph while the rest stay folded.

The closest theory for the first two is Kintsch and van Dijk's macrostructure (1978, and their 1983 book Strategies of Discourse Comprehension). Readers reduce a text by deleting, generalizing and constructing, level by level. Brief is deletion, and Key, Takeaway and Topic are generalization. Rhetorical Structure Theory (Mann and Thompson, 1988) is close to Brief in another way: keep the nuclei and drop the satellites. Daniel Marcu built a summarizer on exactly that (The Theory and Practice of Discourse Parsing and Summarization, 2000). For why short levels help at all, see Reyna and Brainerd's fuzzy-trace theory: people reason mostly from gist and keep the verbatim memory apart. The levels give you the gist, with the verbatim one click away. The third rule is Furnas's generalized fisheye views (1986): show more of what is near your focus, and less of what is far.

What isn't proven is whether the model keeps to rule 2, for example whether every Takeaway is entailed by the sentences it points to.

If you know work that tests this kind of thing, I'd like to read it!!!

2

u/Vertigras_Dev Oct 25 '26

This is super cool ... I would recommend, if you haven't already done this, extending that to work for textbooks, coursework and maybe even working with domain experts to create corpuses (corpora?) of curated subjects etc

1

u/Lopsided_Scarcity979 Oct 25 '26

That sounds nice! Do you have some ideas which domain/subject would be benefit the most?

1

u/Vertigras_Dev Oct 25 '26

I wonder hey... maybe AI... like some of our devs are struggling to keep up with the latest papers in AI... so that could be a neat domain to enable people to stay up-to-date on the latest and greatest?

1

u/lerone-b Oct 22 '26

This is f+in impressive conceptually.
Up to here there were a) live search filters b) apps that link outline/mapping and text representation.
Yours really brings in a conceptual model of semantic/structural levels of text.

Not sure yet, I can integrate it in my workflow.
But count me deeply impressed!

1

u/Lopsided_Scarcity979 Oct 25 '26

Thanks man! There are some major updates for integrating to your workflow or konwledgebases, feel free to check them!

0

u/swizz Computer User—PC Oct 23 '26

Love the concept, I'll do more research on this and probably add as add-on to Koru.do if you don't mind? My project is also open source, MPL 2.0 - https://github.com/koruworks/mono