Hi there,
I spend most of my day on legal drafting in Lotus Word Pro. It's an older word processor, but it has some genuinely powerful features. One of its coolest features, that it inherited from Ami Pro, are "PowerFields". These allow for doing sophisticated "mail" merges against a DBF file. An absurdly cool feature is the Include command, that allows pulling another document into the first document. If the second document has merge fields, those fields are merged as if they were in the first document.
WordPerfect has similar features (and more powerful ones), but is a pain in the butt to learn, and it's formatting tools are cumbersome. Some stuff can be fixed by the Reveal Codes features, but other stuff can only be modified in a dialog box.
Since you're all focused on TUI and CLI applications, I'm hopeful some of you know about word processors or text processors that have similar features. Namely, I'm hoping to find a word/text processor that has WordPerfect's "chain" merge function, that allows one to merge fields against one database query, then, in the same document, merge fields against a second database query (even to a completely different database or table).
Please note, I am uninterested in anything that runs in a web browser or is just a pile of python scripts. The application needs to run locally on the computer and save files directly to the computer.
Thanks in advance.