Here's someone who re-implemented Origami. Here he talks a bit about how folding was implemented (double-linked n-trees) -
http://wotug.org/parallel/tools/editors/folding-editors/fe-mh/README.html If you go to the parent directory, you can get the entire source (in C, apparently from 1997). On Thursday, August 13, 2020 at 7:47:36 AM UTC-4, Edward K. Ream wrote: > > > > On Wed, Aug 12, 2020 at 4:43 PM jkn <[email protected] <javascript:>> > wrote: > > I can't remember if I've mentioned Origami, the old Transputer Development >> System's (DOS-based) editor. It had a wonderful implementation and key >> binding for code folding. >> > > A little googling took me here > <http://wotug.org/parallel/vendors/inmos/archive-server/origami/origami.txt>. > Thanks for the implied link. > > I'm not sure how Origami creates external files and remembers the folds. > Perhaps "..." and "{{{" are the equivalent of sentinel comments. Or maybe > the text file is like a .leo file and there is a way to create external > files from the origami file. Obviously, clones would add more complexity. > > Edward > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/7dd32094-9b03-4371-88d5-af9deecd47e6o%40googlegroups.com.
