leoInteg: aha!

32 views
Skip to first unread message

Félix

unread,
Nov 1, 2020, 10:11:40 PM11/1/20
to leo-editor
Posting this just because I discovered a source of many bugs and felt giddy!

I wrote all of leoInteg without knowledge of the 'wrapper'... only using p and v nodes. setting 'bodies' etc... Turns out some commands pickup selection (and current body text) from the wrapper instead of the v nodes body content. (execute script, ectract, extract name , etc...)

The wrapper is set by leo when changing selection, this explains why some commands started working after having navigated the tree at least once.

anyways - feels good to have an illumination concerning an API you didnt read all the way though - like building an ikea furniture piece without reading the manual, kinda, oh well... hehe

So I'm finally seeing the end of the tunnel for issue #39, hopefully switching to #107 soon, to finally release a first version on the vscode 'market!

Follow along at https://github.com/boltex/leointeg/projects/1 and make sure to watch the tongue-in-cheek promo video https://www.youtube.com/watch?v=SYwlfdEukD4 I made a couple months ago if you havent already :) 

--
Félix

p.s. Although we're in 2020, It's not officially 'the future' until popular programmer editor technology has standard DAG/literate features somehow available! 
p.p.s. I'm on it.

Edward K. Ream

unread,
Nov 2, 2020, 5:31:46 AM11/2/20
to leo-editor
On Sun, Nov 1, 2020 at 9:11 PM Félix <felix...@gmail.com> wrote:

> Posting this just because I discovered a source of many bugs and felt giddy!

Excellent!

In a related development, I am thinking of using the body's wrapper, c.frame.body.wrapper, to eliminate all evil kwargs from the undoer's before/after methods.  It's conceivable that the wrapper itself would become a kwarg, from which all the previous kwargs could be calculated. But I want to avoid any kwargs, and I think that will be possible.
I never paid any attention to GitHub projects, until now. Your project page is an interesting overall view.

> make sure to watch the tongue-in-cheek promo video https://www.youtube.com/watch?v=SYwlfdEukD4 I made a couple months ago if you haven't already :)

Tongue-in-cheek? It's super!

Edward
Reply all
Reply to author
Forward
0 new messages