Leo 6.3.1 will be coming fairly soon

2020-11-07 Thread Edward K. Ream
Leo 6.3.1 is necessary for two reasons:

1. There is a crasher in the leoflexx.py plugin. Somehow pylint did not 
detect that u.afterChangeNodeContents no longer uses the "dirtyVnodeList" 
kwarg. I am not amused.

2. More happily, I am working on a major simplification of Leo's undo code, 
per #1413 . Imo, the 
new code should be an official part of Leo asap. PR 1725 
 summarizes the new 
changes.

The undo logic for changes to headline text has already collapsed. I expect 
that the undo logic for changes to body text will similarly collapse.

True, I could delay point 2 to Leo 6.4, but my guess is that FĂ©lix would 
rather deal with the changes to Leo's api asap. I'll check with him soon.

Edward

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/dcf175c7-a1c4-4190-8ef6-7e734f515979o%40googlegroups.com.


Re: SB: What I'll be studying

2020-11-07 Thread Arjan
I'd like to suggest looking into Svelte, a modern JavaScript framework 
that's compiled at build time, so it has great performance.

I enjoyed this presentation: Rich Harris - Rethinking reactivity 
 (Youtube)

And the learning materials and REPL on https://svelte.dev/ are excellent.
On Saturday, November 7, 2020 at 1:18:49 PM UTC+1 Edward K. Ream wrote:

> It's becoming clearer what I'll be studying and exploring during the 
> sabbatical.
>
> For the last 25+ years I've pretty much ignored web development. That 
> surely was a mistake. There is a ton of interesting technology out there.
>
> My initial focus will be on node.js packages, and the frameworks and 
> technologies connect to them. I first went down this rabbit hole by looking 
> at the yarn.lock file for the jupyterlab project. This file contains all 
> the node.js package dependencies. I then googled some dependencies and took 
> a look at the packages.
>
> The package-lock.json file shows package dependencies for the leovue and 
> leointeg projects.
>
> I then thought to google something like "most popular node.js packages", 
> which unlocked 25+ years of programming effort. "Attached" to popular 
> node.js packages are major projects/frameworks such as jupyterlab, react, 
> angular, ruby on rails, vue.js, etc. etc.
>
> Many of these technologies can be used to build web sites. I'll build a 
> vanilla site for Rebecca using WordPress and woocommerce. Ditto for my son 
> James. After that, I may play around with various frameworks and website 
> builders.
>
> My plan will be to get an overview of the web world first, and then see 
> where this overview takes me.
>
> All comments and suggestions welcome.
>
> Edward
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/dd3626f5-de2c-4a8e-92a4-3b739b9701d5n%40googlegroups.com.


Re: Could someone help me install leovue on a server?

2020-11-07 Thread vitalije


On Saturday, November 7, 2020 at 1:25:02 PM UTC+1 Edward K. Ream wrote:

> After building leovue, per the instructions of #735 
> , I uploaded 
> leovue/dist/static to my server, but the site is not working.
>
>
Have you uploaded leo/dist/index.html too? And have you changed 
configuration options in index.html to show your Leo outline? 

What do you see in web console (click F12 and look in the console tab)? Are 
there any error messages?

Vitalije

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/eb22b96d-10ad-4826-90b6-189fd61d91c6n%40googlegroups.com.


ENB: Simplifying undo

2020-11-07 Thread Edward K. Ream
The goal of #1413  is 
to simplify Leo's undo api so that it is easier to write macro-like scripts.

The first thought was to continue the ongoing elimination of kwargs 
(keyword args) by eliminating kwargs from c.updateBodyPane, 
LeoBody.onBodyChanged, u.setUndoTypingParams, and others.

This is not going to be a typical refactoring! Imo, it would not be 
possible at all without the clone-find commands. Even with those commands, 
the complications are dizzying. In particular, LeoTree.onHeadChanged 
contains the comment "Tricky code: do not change without careful thought 
and testing".

The code is tricky because there are two paths through the code. The code 
can be called via event handlers (path one) or programmatically from Leo's 
core or user scripts (path two). The assumptions of the two paths are 
different.  As I write this, I see that it might be best to use two 
completely separate sets of code for each path, that is, one set for event 
handlers and one set for scripts. We shall see whether this is possible or 
desirable.

At present, unit tests might not actually find problems in the revised 
code, because unit tests run with the null (string-based) gui, not the 
actual Qt gui. Imo, the crucial unit tests will have to be run with the Qt 
gui.

*Summary*

Simplifying how scripts handle undo is worth a lot of work. This work will 
be tricky and dangerous.

I do plan to work on #1413 during the sabbatical, just for fun and as a 
break from endless study :-)

Edward

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/1b8637e0-caae-46c6-8f65-cac646e30cd2o%40googlegroups.com.


Could someone help me install leovue on a server?

2020-11-07 Thread Edward K. Ream
After building leovue, per the instructions of #735 
, I uploaded 
leovue/dist/static to my server, but the site is not working.

I suspect just a few tweaks should suffice, but I'm not sure what those 
tweaks are. Perhaps I should have uploaded something else :-)

If you would be willing to help me, please let me know here. We can then 
chat offline, or on zoom. I'll then summarize the results here or on #735.

Thanks,

Edward

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d3ee4d3a-b7fe-4b7c-9726-8cc6c57c6454o%40googlegroups.com.


SB: What I'll be studying

2020-11-07 Thread Edward K. Ream
It's becoming clearer what I'll be studying and exploring during the 
sabbatical.

For the last 25+ years I've pretty much ignored web development. That 
surely was a mistake. There is a ton of interesting technology out there.

My initial focus will be on node.js packages, and the frameworks and 
technologies connect to them. I first went down this rabbit hole by looking 
at the yarn.lock file for the jupyterlab project. This file contains all 
the node.js package dependencies. I then googled some dependencies and took 
a look at the packages.

The package-lock.json file shows package dependencies for the leovue and 
leointeg projects.

I then thought to google something like "most popular node.js packages", 
which unlocked 25+ years of programming effort. "Attached" to popular 
node.js packages are major projects/frameworks such as jupyterlab, react, 
angular, ruby on rails, vue.js, etc. etc.

Many of these technologies can be used to build web sites. I'll build a 
vanilla site for Rebecca using WordPress and woocommerce. Ditto for my son 
James. After that, I may play around with various frameworks and website 
builders.

My plan will be to get an overview of the web world first, and then see 
where this overview takes me.

All comments and suggestions welcome.

Edward

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/4bf87689-2901-4fb8-b4bd-2c7cba3d62eco%40googlegroups.com.