Perhaps you’ll like document-centric environments, where active UI elements can be part of the text.
- Research on these dates back to User-tailorable systems: pressing the issues with buttons.
- …
- Coda is one modern take on the genre. (Haven’t tried it but was impressed by this interview.)
- A more compositional spinoff was Boxer. It also blurs the line between document/UI/app, but adds nesting of collapsable “boxes”, reusing them for every level of structure — from variable scoping up to the level we’d call folders and apps…
Start from their “Boxer Structures” doc; most relevant/insightful sections are “uses of doit boxes”, “uses of data boxes” & all mentions of “reconstructible interface”.
I’m not sure I fully follow your meaning, but Boxer’s ideal of “naive realism” comes to my mind. As does Self’s UI e.g. The thing on the screen is supposed to be the actual thing.
Getting away from text, Tangible Functional Programming (best to watch the video) does interesting things with visual “grammar” for seeing & combining functions.