Commit Graph
166 Commits
Author SHA1 Message Date
Matouš Jan FialkaandGitHub 9419cdcd9b Space Lua: <close> attribute, __close metamethod and extensive tests (#1791)
Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2026-01-28 09:05:23 +01:00
Zef Hemel 4704f0d513 lint fixes 2026-01-27 17:12:27 +01:00
Zef Hemel 1110258b90 Adding back index.defineTag (DEPRECATED)
Removed from docs
Will be replaced with something better later
2026-01-27 17:11:59 +01:00
Zef Hemel d6078979a5 Revert "Remove legacy index.defineTag API"
This reverts commit 78236db7a0.
2026-01-27 16:52:52 +01:00
Zef Hemel 4d54d05f88 Schema-based attribute completion for frontmatter and LIQ queries
Experimental and rudamentary, will not cover all cases.
2026-01-27 16:38:48 +01:00
Zef Hemel 77b3186160 Revert from t in expr syntax variant in LIQ after discussion 2026-01-27 16:24:29 +01:00
Zef Hemel 10241e8be4 Add actual Lua code body for LuaDirectives to parent nodes for
completion events
2026-01-27 16:19:48 +01:00
Zef Hemel 78236db7a0 Remove legacy index.defineTag API 2026-01-27 13:46:09 +01:00
Zef Hemel 79cf020c01 Remove _additional_ sync log message 2026-01-27 10:33:45 +01:00
Zef Hemel bd03a406f0 Renamed postIndex to transform for tag.define API (experimental). 2026-01-27 09:33:00 +01:00
Zef Hemel 812dee8537 Lua/LIQ: added from p in <<expr>> as a syntax variant (and preferred
option) for `from p = <<expr>>`. Updated docs accordingly.
2026-01-27 09:15:07 +01:00
Zef Hemel 2e469ba3ea Lua: table.select API 2026-01-27 09:00:37 +01:00
Zef Hemel 9b05beba16 First pass of custom tag behavior (schema and postProcess) support
See API/tag.md for explanations and examples.
2026-01-22 15:32:01 +01:00
Zef Hemel 27d4ab6339 Use getObjectByRef directly for editor.getCurrentPageMeta syscall 2026-01-22 11:39:43 +01:00
Zef Hemel 0f37cc1a50 Lua: when writing to property inside of a JS object, convert value to JS
value
2026-01-22 11:05:44 +01:00
Zef Hemel fb10fd65b8 shortWikiLinks config option 2026-01-22 08:42:30 +01:00
Zef Hemel a89ab96438 Expose _G global variable in Space Lua 2026-01-21 14:32:41 +01:00
Zef Hemel 8acad63565 Reorganized keyboard shortcuts a little bit and documented them. 2026-01-21 11:01:11 +01:00
Zef Hemel c25a073e81 WIP 2026-01-20 13:48:15 +01:00
Zef Hemel ce55905c64 Bump desired index version to force space reindex 2026-01-16 13:00:58 +01:00
Zef Hemel 9eaecaa324 Fixes #1769 2026-01-15 11:26:58 +01:00
Zef Hemel bd4db1afea fmt 2026-01-15 11:14:44 +01:00
Zef Hemel 688afded0f Picker tuning
* Removed code complete from mini editor (didn't really work anyway, and
  only use case was emoji)
* Changed meta picker to be more consistent with page picker
* Alt-space completion in page picker (completes "folder" to the top
  match)
2026-01-15 11:14:16 +01:00
Zef Hemel 98f0d09b05 lint fix 2026-01-15 09:27:14 +01:00
Zef Hemel a2c0c01ac7 preact upgrade 2026-01-15 09:27:06 +01:00
Zef Hemel 840e0c5fea Tuned the filterbox and fuse-based filtering
* Upgraded fuse library
* Removed the category support in the filterbox, it was buggy and hides
  command names
* Tweaked fuse parameters for (hopefully) better matches in the page
  picker (and everywhere where the filter box is used)
2026-01-15 09:17:34 +01:00
Zef Hemel cf49b9372f Add message queue flushing to Client: Clean 2026-01-15 08:42:06 +01:00
Zef Hemel 3924b903fd comment fix 2026-01-14 08:34:13 +01:00
Zef Hemel 062c1ea44d Fix: addParentPointers re-attaches parents even if a sub-tree already
has some

+ some cleanup

Properly addresses #1776
2026-01-14 08:33:29 +01:00
Zef Hemel 50f418d41a Position based transclusions now left-margin shift content 2026-01-13 15:45:29 +01:00
Zef Hemel 0f4d5a5437 system.getBaseURI syscall 2026-01-13 15:44:52 +01:00
Zef Hemel 68dc078668 Remove unnecessary flash notifications when copying anything to the
clipboard
2026-01-13 15:44:39 +01:00
Zef Hemel 088f51268f Fix: Support transcluded markdown widgets 2026-01-13 15:44:07 +01:00
Zef Hemel 87c068fcc9 Remove debug code 2026-01-12 17:32:10 +01:00
Zef Hemel 43bd9efaf7 * Add "view" button to transclusions, jumping to ref
* Tweaks to markdown.expandMarkdown syscall
2026-01-12 17:19:23 +01:00
Zef Hemel cdced5349f Fix Edit button on transclusion widgets 2026-01-12 17:19:23 +01:00
Zef Hemel 3461b19f83 Item and transclusion refactor 2026-01-12 17:19:23 +01:00
Zef Hemel fb3dd51bdb Inline content refactor 2026-01-12 17:19:23 +01:00
MrMugameandGitHub 4cd12c8ae7 Set base inside of iframes (#1766)
* Set base inside of iframes

* Add `system.getURLPrefix` syscall
2026-01-09 15:30:34 +01:00
Lennart OchelandGitHub 7ffcd83c44 Support |^| to set cursor position in virtual pages (#1764) 2026-01-08 16:15:57 +01:00
Zef Hemel 484c746bf0 Reduce widget "flapping" 2026-01-08 16:01:42 +01:00
Zef Hemel 63734ee231 Lua: table.find can now take a nil table and not fail (convenient for
queries)
2026-01-08 15:00:35 +01:00
Zef Hemel dc21c5f6aa Add syscalls to retrieve both file and page content together with meta
in 1 call (optimization opportunity)
2026-01-08 14:05:50 +01:00
Zef Hemel 286d5ff72b Remove debug logging 2026-01-08 14:05:26 +01:00
Zef Hemel 9acf314880 Fix initial index race condition 2026-01-08 12:10:45 +01:00
Zef Hemel a5a169df1b More verbose sync error 2026-01-08 10:08:49 +01:00
Zef Hemel f3680231b7 Fixes #1740 Attaches data-* attributes to attributes in the editor for
custom styling
2026-01-08 09:47:10 +01:00
Zef Hemel 757896d502 Fixes #1730 Introduces editor:fold and editor:unfold event, also
documents some other events while at it.
2026-01-08 09:30:40 +01:00
Zef Hemel cd1fdca1e0 Fixes #1679 If CONFIG code is broken (e.g. parse error) will now attempt
another boot sequence without CONFIG.
2026-01-08 08:38:41 +01:00
Zef Hemel cb0c74146d Lua: fix break edge case
As reported here:
https://community.silverbullet.md/t/break-is-broken/3739
2026-01-08 08:20:27 +01:00