Commit Graph
402 Commits
Author SHA1 Message Date
Zef Hemel 130b5b179a config.* syscalls 2025-03-24 17:44:09 +01:00
Zef Hemel e003e926d2 Progress 2025-03-23 15:56:02 +01:00
Zef Hemel c157e979f0 WIP 2025-03-23 12:48:25 +01:00
Zef Hemel 65e853e800 Temporarily add back in system.getSpaceConfig 2025-03-22 08:48:02 +01:00
Zef Hemel 55be05031c Markdown widget removal 2025-03-22 08:40:26 +01:00
Zef Hemel 63f7314256 index.tag simplification 2025-03-22 07:53:24 +01:00
Zef Hemel b1421dc030 Update table.find API 2025-03-21 16:48:30 +01:00
Zef Hemel d73d9b155f Further work 2025-03-21 16:12:10 +01:00
Zef Hemel 6e368619c5 Remove embeds 2025-03-21 16:12:10 +01:00
Zef Hemel 1284d15a8b Remove command buttons 2025-03-21 16:12:10 +01:00
Zef Hemel fa8f07a123 Kinda working 2025-03-21 16:12:10 +01:00
Zef Hemel d50ddc2357 First very rough pass of cleanup 2025-03-21 16:12:07 +01:00
Zef Hemel 701a3b1fb8 Query collection distinct 2025-03-21 16:11:00 +01:00
Zef Hemel a773d320f6 Lua: support distinct queries 2025-03-21 16:11:00 +01:00
Zef Hemel e6aa89020a Lua: table.find 2025-03-21 16:11:00 +01:00
Zef Hemel f4de6a4b85 Migrating core use of queryObjects to queryLuaObjects 2025-03-18 18:22:17 +01:00
Zef Hemel 0812ba8287 Added some convenience editor syscalls 2025-03-16 15:53:00 +01:00
Stan Ionitoiu-JanssenandGitHub d38e757cd6 fix(tables): only escape pipes outside SB context (#1292)
* fix(tables): only escape pipes outside SB context

Fixes #943

* fix(tables): detect command context in tables

Fixes #1016

* Added tests for parsing tables
2025-03-15 20:58:43 +01:00
Zef Hemel fdf6a97f97 Lua: expose all template.* syscalls 2025-03-15 20:52:34 +01:00
Zef Hemel dde532d1b6 Added silverbullet lua:repl command 2025-03-14 16:43:13 +01:00
Ohad LutzkyandGitHub cde2155ac3 Use writer to ensure the entire file is written (#1287)
Using file.write directly once doesn't guarantee the entire file is
written; see https://docs.deno.com/examples/writing_files/
2025-03-14 16:02:18 +01:00
Zef Hemel c85fb17145 Improved Lua string library 2025-03-14 15:56:53 +01:00
Zef Hemel 98befe3a33 Lua widget event support 2025-03-14 10:36:41 +01:00
Zef Hemel f514ef1b53 Lua: support passing Lua function callbacks to native JS functions 2025-03-14 10:02:25 +01:00
Zef Hemel a56ef0b897 Add system.serverSyscall syscall 2025-03-13 09:10:37 +01:00
Stan Ionitoiu-JanssenandGitHub a8ceee869b Fixes #1086 - search returns -1 if no match is found (#1288) 2025-03-12 18:10:23 +01:00
Zef Hemel 1881fa8af9 Lua: work to make more table APIs work with native JS arrays 2025-03-10 17:31:02 +01:00
Zef Hemel 242ae73078 Lua: fix some subtle Lua-isms 2025-03-09 15:37:38 +01:00
Zef Hemel 29c2781c11 lint fix 2025-03-08 20:55:30 +01:00
Zef Hemel 3b3e6991bc Lua: string.format implementation 2025-03-08 20:54:43 +01:00
Zef Hemel 922e4bfe49 Lua: fixed subtle issue where singlular expression statements wouldn't await finishing 2025-03-08 10:17:10 +01:00
Zef Hemel 9ed61e791d Re-enable shell APIs from Lua 2025-03-07 21:03:15 +01:00
Zef Hemel 7e706754f4 Enable client file listing for plugs 2025-03-07 16:04:36 +01:00
Zef Hemel d33db399c8 Auto complete and lint fixes 2025-03-07 15:13:47 +01:00
Zef Hemel 0a80c5c537 Collapse PageRef, DocumentRef and LocationRef into a single Ref type 2025-03-07 13:49:20 +01:00
Zef Hemel 549b73c37d Lua: optimize returns to no longer leverage exception throwing in the common case 2025-03-07 12:42:12 +01:00
Zef Hemel a17a9df40e Remove indexPage from default SETTINGS 2025-03-07 11:16:27 +01:00
Zef Hemel 1dc1103b2a Moved indexPage configuration to SB_INDEX_PAGE env variable instead
Added /.config endpoint to more dynamically influence the configuration
2025-03-07 10:56:45 +01:00
MrMugameandGitHub e61a447d98 Implementing #913 (#1230)
Implemented custom editors
2025-03-06 15:11:17 +01:00
Zef Hemel 105908204b Fixes #1253
More accurate type classification and eager evaluation of left "and" operand.
2025-02-22 21:28:00 +01:00
KitAmbraidandGitHub 31792a3a43 space lua: os.date add support for %U, %V and %W (#1250) 2025-02-22 12:00:54 +01:00
Zef Hemel 538032ea94 Cleanup eval a bit 2025-02-20 07:55:09 +01:00
Zef Hemel 9d3b9a8a22 Reduce code duplication 2025-02-13 20:11:08 +01:00
Zef Hemel cf81594b02 Fixes #1236 2025-02-13 20:11:08 +01:00
Zef Hemel 5b982ac257 Fix syntax highlighting of Lua expressions that start with whitespace 2025-02-10 20:30:37 +01:00
Zef Hemel fb7be2a45a Changelog updates and Lua fixes 2025-02-09 18:37:21 +01:00
Zef Hemel 654151437c Lua: Set string as metatable of string values, allowing for strVal:upper() style invocations 2025-02-09 11:06:15 +01:00
Zef Hemel 6699ac783f Added some more string tests 2025-02-08 20:32:42 +01:00
Zef Hemel 9317d143b3 Fixes #1231 2025-02-08 16:51:31 +01:00
Zef Hemel 44a1ce698e Support plugs to register their own syscalls, using syscall (see the index plug for an example) 2025-02-07 15:16:57 +01:00