Space Lua: Making Space Script safer, simpler and unifying all the things

That is so exciting man. I’ve been seeing commits about space-lua for a few days and looking it works is so exciting. Great job zef!

One thing I notice is that the demonstrated syntax is not 100% lua right? It is using semicolon for key-value pairs in the table.

Yeah that’s valid Lua syntax, you can use either commas or semicolons

Started some documentation: Space Lua

Subject to deep change. Still figuring out what this can and should do and what the APIs should look like.

3 Likes

@zef Absolutely cool! Looking forward to it!

(BTW: the marquee tag is obsoleted.)

It will never be obsolete in my heart.

1 Like

It’s the first cool thing I did when learning HTML haha

Hey Zef, do you think it is easier to accept the valid lua file instead of embed in the markdown block so we can use our own editor with completion and other functionalities?

Out of couriosity I did a few experiments with LUA in Silverbullet and despite having pretty small knowledge about it, yet, I like it very much!
Especially the Widget style is very handy (in fact, I missed something like that before).
And defining global functions is much more easy now, too.

However, I did not get, how to access objects like page, tags, tables, own objects and so on.
Could you please add some examples to the space-lua-documentation, too?

Thanks :slight_smile:

2 Likes

Thanks!

Accessing those things is not very easy yet. I’m still thinking what’s the best way to expose this.