Leo (text editor)
Developer(s) | Edward K. Ream, et al. |
---|---|
Stable release | 6.7.7
/ January 18, 2024 |
Repository | |
Written in | Cross-platform |
Size | ~9 MB |
Type | Text editor, Outliner, IDE |
License | MIT |
Website | leo-editor |
Leo is an open-source text editor/outliner that features clones (virtual copies of outline nodes) as a central tool of organization, navigation, customization and scripting.
Languages
Leo can manipulate text or code in any human or computer programming language (e.g., Python, C, C++, Java), as Leo is a language-independent or "adaptable LPE" (
files.Trees, clones and views
Leo's foremost functionality, in addition to text editing, is that of an outliner, with a "vast range of convenience features for structuring and managing outlines" both by drag-and-drop via GUI and by keyboard commands.[2] Leo's outline pane shows a tree of data nodes. Nodes contain headlines, body text, and other information. Headlines naturally serve as descriptions of the body text. For example, @file nodes are nodes whose headline starts with @file. Leo trees are in fact directed acyclic graphs; nodes may have more than one parent. Leo calls such nodes clones. Clones appear in several places in the outline pane. Views are simply nodes whose children contain clones. A single outline may contain arbitrarily many views of the nodes contained therein.
External files
@file nodes represent external files, files on the computer's file system other than the outline file. When saving an outline Leo automatically writes all changed @file trees back to the external files. Comments, called sentinel lines, in external files represent the outline structure. When Leo reads an outline, these comments allow Leo to recreate @file trees using only the data in the external file. @auto nodes and @clean nodes represent external files without using sentinel comments. When reading @auto nodes, Leo uses the program structure of the external file to create the @auto tree. When reading @clean nodes, Leo uses the structure of the outline to create the @clean tree.
Scripting
Leo's outline or hierarchical structure is distinct from the web of interleaved program and documentation "chunks" associated with classic
References
- ISBN 3-540-22137-9. Table 2: "Some Language Independent LPEs", p. 251
- ^ ISSN 1236-6064. Archived from the original on 29 November 2014. Retrieved 18 November 2014.) Leo discussed on pp. 12-13 of author's copy of published article.
{{cite journal}}
: CS1 maint: bot: original URL status unknown (link - S2CID 17591332.
A few literate programming systems have taken a much different tack based on novel user interfaces. Edward Ream's literate editor, Leo, uses visual outlines that allow users to attach metadata and descriptions to program descriptions and data. Unfortunately, truly literate programs may break Leo's hierarchical outline based paradigm.
(p. 1009) - WEB.
External links
- Official website
- Leo-editor on GitHub
- "LeoVue, A web-based version of Leo, by Joe Orr".
- "LeoInteg, A VSCode extension that integrates Leo, by FĂ©lix Malboeuf". GitHub.
- "LeoJS". GitHub.
- "Literate Programming and Leo". Slashdot. 2002-08-28.
- James Tauber (2004-05-15). "Using the Leo Outliner as a PIM".