
Sure, I've made a mock up to aid understanding.
the body pane as shown here is what you see when in Org mode, It doesn't have a "tree pane".
To be clear I'm not advocating that Leo's body pane be converted to this. I'm suggesting this as a new and different type of body pane, where you could switch between this new type of body pane and a conventional single node body pane, depending on your preference.
My understanding from past conversation is that Terry has put quite some work into something similar.
Whilst there is a benefit to the "focus" of seeing only one node at a time, in the cases where I use Org-mode I explicitly want/need to see multiple nodes at a time.
Whilst there is a benefit to the "focus" of seeing only one node at a time, in the cases where I use Org-mode I explicitly want/need to see multiple nodes at a time.This is something I would really like to be able to use in Leo. Both for writing text as well as code, being able to see the preceding and following node contents would be very beneficial.
I do not know whether I am remotely close to the intended audience for Leo, but I can say that Leo does not feel far from the type of tool I would use on a regular basis.
I am also constantly working on a book of research on my areas of practice (constitutional law). My practice area is academic. In this arena, Leo is superior to orgmode, due mostly to the use of clones. With my subject area it is impossible to create an outline that does not make heavy use of clones if it is being efficient. And clones make the outline so much more clear and easy to work though. But I can’t justify using a second text editor for this because orgmode is good enough for this purpose (and can be customized to whatever extent needed). But there are other things I like about Leo (python over elisp, for example) that still make me long to be able to make it a centerpiece of my workflow.
Beyond orgmode, I find that Emacs is much more inviting to customization.
While I think python is a much more powerful and useful language, my impression is that Leo does not create such an inviting environment (in terms of inviting and enabling users to customize the text editing experience) by comparison. It is very possible that I simply have not looked deep enough, or know enough about python to know how to do all of the things elisp brings to the surface (buffer movement commands, commands like save-excursion, save-restriction, buffer switching, font-locking, etc.).
So, the short answer is that I really need orgmode or a viable replacement for it, and I recognize that this is well outside of Leo’s mission, hence my question about Leo inside emacs.
Hi,
Many interesting use case from your original perspective. Leo was
my main outliner to (de)construct complex text, as a researcher
and PhD student. Clones are a killer feature on that front and I
still use Leo to read and organize code which has been written by
others.
On your particular request maybe you could see the other way around: Emacs inside Leo. I imagined long ago that the body pane is the (console) editor of choice of the user (Vim, Emacs, Nano, Micro) and is embedded there. All shortcuts and expected behavior from this editor work as expected (is just a console), but it is improved by all the meta-organizing capabilities of Leo. This would imply that embedded editors work in collaboration with Leo tree and such approach would imply to make embedded editor and Leo provide services to each other. I don't know if Pyzo explorations and its server architecture give a hint on that front, but now that we are thinking in this "blue space plane" of ideas, that could be an worthy exploration.
Cheers,
Offray
--
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 post to this group, send email to leo-e...@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/c60fb7b1-8bfe-4cbc-91fe-ab1c6d8c3027%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I think emacs and pharo are extremely similar in scope. That is to say in both cases you can (and are intended to) spend close to 100% of your time within the computing environment. In emacs the features that help facilitate this are dired, vc/magit, and term/shell-commands.
I spend an enormous amount of my time in dired because it's just so well integrated into the rest of emacs. [snip]]vc/magit/diff-hl and other features make version control seamless and mostly painless. [snip]
Leo is very much like Org. I use Org more like a Jupyter Notebook than anything else. What I utilize most is Org-babel. [snip] Leo does quite a bit of what Org does already, they just do things differently.
If Leo had a multi-node body pane which reflected the indented structure/view shown in the tree pane then it would function more similarly to Org-mode than it does now. [snip].
For this, I think Leo, through the use of clones, would be well suited. But doing that is itself a huge project. Orgmode has been built collectively for many years, and it would be very difficult to build a version of it that would draw away an experienced emacs user. If done well, it would also attract new users. If really well, that plus python might do it.
If I could do this with python, and write code that takes effect immediately and channges functionality in real time, I would love
that. I have no idea whether this is how Leo is, or whether this is common, etc.
Emacs also does an excellent job of exposing its documentation. For example, if you want to see the value of a variable and documentation for it, you press C-h v, and then you'll be prompted for the varialbes name, and the results can be searched through with fuzzy matching. The same can be done with functions with C-h f. You can also navigate to the source code, which shows the source, and all callers and callees.
Here are the reasons why I use emacs: [org mode and elisp].
1.
The benefit elisp is that, with just a bit of knowledge, I can write custom functions on the fly, bind them to a shortcut, and be done.
The language itself provides simple functions for navigating the buffer, navigating between buffers, text entry, changing color, etc.
Emacs also does an excellent job of exposing its documentation.
Also if you want to see some quick videos of emacs-style tricks, checkout the emacs rocks videos on youtube.
Regardless, if you could do orgmode--or something like it--in Leo I think that would be a big selling point. It would for me, at least, since python is just easier to use than elisp, no matter how cool it is.
Thanks for this. It lead me to a big aha, which I'll describe in another post.