Hello Leonistas,I've been exploring a program the last few weeks that seems like it might be an answer to a long felt wish: to have a Leo-like experience for editing and managing a rich text and media notes knowledgebase. That program is Trilium Notes.
Of course, dealing with hierarchical data sooner or later requires a
mechanism that allows to put data in more than one branch of the
hierarchy so this seems to be a logical step. However, Leo has taken
this step more than 20 years ago and made it its fundamental design feature.
Except that standard Leo nodes don't render graphics and other non-text items. That's a big difference. We get around it to a degree with VR/VR3. Hmm, instead of rendering those nodes in a separate frame as VR/VR3 does, we could overlay the rendering frame over the editing frame. We could switch in and out of rendering mode to allow editing. I bet that wouldn't be too hard. One way would be to use a 2-frame tabbed widget. Leo would then have no disadvantage compared with Trillium and its ilk, and would keep all of its advantages.Yowee!
--
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 leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS2oz4FPGXyuztu8e%3DpA3_vLG3DCF2x24p1FM_kSrRPJKw%40mail.gmail.com.
Hmm, instead of rendering those nodes in a separate frame as VR/VR3 does, we could overlay the rendering frame over the editing frame. We could switch in and out of rendering mode to allow editing. I bet that wouldn't be too hard.
Thomas, you may have solved a problem that has bedeviled me for ages! Here are my first thoughts:
I've never liked the VR pane. It seems like a significant waste of real estate.
Edit modes are confusing, but visual modes will work! Here are some preliminary thoughts:
Rendering modes
Both headlines and body text will specify a default rendering mode for each node:
- Headlines like @movie and @html (and all the others that VR and VR3 support) would set the default rending mode to some graphics mode.
- Otherwise, @language directives will specify the preferred rendering mode, usually text mode. However, @language rst would specify rst mode.
- A possibility: @rst-tree in the headline would specify that the rendered contents would consist of the node's body and the bodies of all descendant nodes.
Switching modes
The toggle-rendering-mode command will toggle between the default and alternate rendering modes. Text mode will always be one of those modes.
Users are unlikely to become confused about which mode is in effect because graphics look very different from text. If confusion does arise, graphics icons could mark graphics-capable nodes.
Summary
Rendering body text as either text or graphics seems like a natural idea. Why didn't I ever think of this before? And how did we ever live without it?
The toggle-rendering-mode command will toggle between graphics and text views.Today is a milestone in Leo's history. And there is further room for invention!
Edward
On Thursday, April 25, 2024 at 6:57:17 AM UTC-5 Thomas wrote:Hmm, instead of rendering those nodes in a separate frame as VR/VR3 does, we could overlay the rendering frame over the editing frame. We could switch in and out of rendering mode to allow editing. I bet that wouldn't be too hard.Thomas, you may have solved a problem that has bedeviled me for ages! Here are my first thoughts:
I've never liked the VR pane. It seems like a significant waste of real estate.
Edit modes are confusing, but visual modes will work! Here are some preliminary thoughts:
Rendering modes
Both headlines and body text will specify a default rendering mode for each node:
- Headlines like @movie and @html (and all the others that VR and VR3 support) would set the default rending mode to some graphics mode.
- Otherwise, @language directives will specify the preferred rendering mode, usually text mode. However, @language rst would specify rst mode.
- A possibility: @rst-tree in the headline would specify that the rendered contents would consist of the node's body and the bodies of all descendant nodes.
Switching modes
The toggle-rendering-mode command will toggle between the default and alternate rendering modes. Text mode will always be one of those modes.
Users are unlikely to become confused about which mode is in effect because graphics look very different from text. If confusion does arise, graphics icons could mark graphics-capable nodes.
From an architectural point of view, the current Leo editor widget could get replaced by a widget with several child widgets (a tabbed widget is one possibility), of which one is the current editor widget, and most keyboard and mouse input will go to it no matter whether the text or rendering widget is visible. This plan would require minimal changes to the rest of Leo's code.