Commit Graph

1860 Commits (a169406d3721f4f75933a034a9a18c038b24cbca)

Author SHA1 Message Date
Zef Hemel a169406d37 Lua: huge API breaking change: converted all snake_case APIs to camelCase 2025-02-06 10:04:45 +01:00
Zef Hemel 0635faabfc Bump Deno version 2025-02-06 08:38:37 +01:00
Zef Hemel 2e96155a05 Support scrollIntoView in insertAtCursor syscall 2025-02-06 08:37:34 +01:00
Zef Hemel ac18443b53 Support setting multiple keys in config 2025-02-06 08:37:09 +01:00
Zef Hemel 12d5f0beba Add scrolling into view to insertAtCursor syscall 2025-02-06 08:36:56 +01:00
Zef Hemel 9ccfe13818 Expose SB instance base URL to Lua 2025-02-06 08:36:43 +01:00
Zef Hemel 4f707e498c Lua: Reject setting metatable to a nil value 2025-02-06 08:36:28 +01:00
Zef Hemel e44b2776df Fix to federation proxy for non-GET requests 2025-02-06 08:36:06 +01:00
Zef Hemel 47ac8cae09 Expose some JS regexp functions to Lua 2025-02-06 08:35:34 +01:00
Zef Hemel 3344845d1f Better tostring for Lua functions 2025-02-06 08:34:38 +01:00
Zef Hemel 4bd3370f71 Improve Lua error reporting 2025-02-06 08:34:23 +01:00
Zef Hemel 2ea3d8fe4f Fixes #1227 2025-02-05 09:01:26 +01:00
Ohad Lutzky 1e30517955
Open external links in a new tab (#1229)
Fixes https://github.com/silverbulletmd/silverbullet/issues/1228. This matches the generated HTML to the current behavior of editor.openUrl.
2025-02-03 19:52:45 +01:00
Mufeed Ali c27c83bc44
poc: Add indentMultiplier configuration for customizable indentation in editor (#1212) 2025-02-01 14:35:22 +01:00
Zef Hemel ccf86a648b Fix RO mode on initial sync 2025-01-30 15:54:34 +01:00
Max Richter c6624085f0
fix: strike through links in tasks (#1225) 2025-01-30 14:54:57 +01:00
Max Richter 0c41927dfe
fix(editor): allow multi selection while in vim mode (#1224)
This fixes an issue with visual block selection in vim mode
2025-01-30 14:53:53 +01:00
Zef Hemel 548bcfd239 Fix Lua stdlib issues in Sync mode 2025-01-30 14:43:30 +01:00
Zef Hemel 1e9581baff Merge branch 'main' of github.com:silverbulletmd/silverbullet 2025-01-30 13:32:23 +01:00
Zef Hemel 321cd34036 Remove silverbullet-pub for now 2025-01-30 13:32:09 +01:00
Zef Hemel c5162ff605 Fix command query source 2025-01-30 13:32:03 +01:00
Zef Hemel 17e62e8b45
Update include-page.md 2025-01-26 10:05:19 +01:00
Zef Hemel 0cfe59e620
Update Query Templates.md 2025-01-26 10:03:54 +01:00
Zef Hemel 9f47c3df30 Optimize Lua complete 2025-01-26 09:00:10 +01:00
Zef Hemel 71a414d1d4 Lua fix truthiness test 2025-01-26 08:59:44 +01:00
Zef Hemel 17ec0e41d1 Lua code complete 2025-01-26 08:07:58 +01:00
Zef Hemel f940a04dc8 Lua: template.define_slash_command 2025-01-26 08:07:32 +01:00
Zef Hemel b8835a07e2 Lua truthiness fixes 2025-01-26 08:07:10 +01:00
Zef Hemel 265aa8dab6 Lua: left eval or 2025-01-26 08:05:52 +01:00
Zef Hemel a28c3fd5b8 Context sensitive slashCommands (with onlyContexts and exceptContexts) 2025-01-26 07:35:41 +01:00
Zef Hemel 236b2a7fdd Lua: tweaks and fixes 2025-01-25 08:29:11 +01:00
Zef Hemel 6f3d021da7 Added basic Lua query templates 2025-01-24 18:48:01 +01:00
Zef Hemel 5139acda3a Fix lua in RO mode 2025-01-24 17:43:28 +01:00
Zef Hemel 9044c275e3 Merge branch 'main' of github.com:silverbulletmd/silverbullet 2025-01-24 17:28:56 +01:00
Pushakar Gaikwad 462c6170fd
Fixed typo in page reference in doc (#1220) 2025-01-23 20:17:20 +01:00
Zef Hemel fce78a22f8 More Lua template work 2025-01-22 20:26:37 +01:00
Zef Hemel 21c17ac737 Lua string parsing fixes 2025-01-21 09:08:31 +01:00
Zef Hemel bd24bac6cd Fix order in Template Index template 2025-01-21 07:46:29 +01:00
Zef Hemel 517cfb209a Lua: Reimplement `template` and `config` in Space Lua, distributed with Library/Std 2025-01-20 23:29:06 +01:00
Zef Hemel d72983bde5 Fix read only mode 2025-01-20 23:28:14 +01:00
Zef Hemel 41d5743673 Load .lua files with `dofile` 2025-01-19 16:23:08 +01:00
Zef Hemel 6078452a6c Breaking Lua API changes:
* tpl -> template.new
* define_command -> command.define
* define_event_listener -> event.listen
* tag -> index.tag

Updated in the docs
2025-01-19 14:32:11 +01:00
Zef Hemel 72b4ecdc36 Blacklist shell syscalls in Lua for now (security) 2025-01-19 13:02:01 +01:00
Zef Hemel 11a2adbea6 Lua script block prioritization 2025-01-17 19:10:46 +01:00
Zef Hemel 6d42423e8d Lua fixes 2025-01-17 18:32:13 +01:00
Zef Hemel 6a65912b94 Lua math lib fixes 2025-01-17 18:32:01 +01:00
Zef Hemel 0076208658 Fixes to index APIs 2025-01-17 18:31:17 +01:00
Zef Hemel ae20b81126 Don't hang on using luaToString on recursive data structures 2025-01-17 18:30:29 +01:00
Zef Hemel 83550c1623 Exposing Objects indexing as syscalls 2025-01-17 10:41:02 +01:00
Zef Hemel 66433d27cc Lua math library 2025-01-17 10:40:47 +01:00