Commit Graph
2791 Commits
Author SHA1 Message Date
Zef Hemel dbf95f7fe2 Fix lint 2026-02-03 09:50:25 +01:00
Zef Hemel 9057702557 Merge Client: Clean into Client: Wipe and remove Client: Clean
Client: Wipe now also deletes redundant other databases.

Related to #1798
2026-02-03 09:48:01 +01:00
Zef Hemel 3b9fb0e944 Merge branch 'main' of github.com:silverbulletmd/silverbullet 2026-02-03 08:56:52 +01:00
Zef Hemel b8b1fb52bb Changes UI progress update logic
Introduced a maximum observed queue size to improve progress percentage calculation, no more "67" fallback value.

Part of #1798
2026-02-03 08:56:41 +01:00
Lajos PappandGitHub 48cef27ce5 fix: undefined SB_PORT in healthcheck (#1812) 2026-02-02 21:50:56 +01:00
Zef Hemel 9667916c9c Adds "Page: Create Under Cursor" command
Command that allows creating a new page based on the wiki link under the
cursor.
2026-02-02 17:00:56 +01:00
Zef Hemel fb50a6e188 file:change events are now awaited, for better synchronous operation 2026-02-02 16:41:44 +01:00
Zef Hemel 0da5d97284 Refactor navigation commands and enhance page renaming logic
* Modified renamePage function in refactor.ts to ensure navigation to the new page occurs after the index queue is processed, so that linked mentions reflect updated data once arriving there
2026-02-02 16:40:58 +01:00
Matouš Jan FialkaandGitHub c38876b46f Space Lua: Improve numeric types semantics (#1803)
* Space Lua: Improve numeric types semantics

Add numeric result normalization for arithmetic operations:

* Integer operations preserve int type, collapse -0 to +0
* Float operations preserve float type, maintain -0.0
* Division always produces float results

Fix for-loop variable type tracking:

* Loop variable type determined by start/step parameters
* Integer loops produce integer variables
* Float/mixed loops produce float-tagged variables

Implement table key normalization:

* Integer-valued floats (1.0, 2.0) normalize to integer keys
* All zero variants (0, 0.0, -0.0) map to same key
* Non-integer floats (1.5) remain distinct keys

Add tests for:

* Arithmetic type preservation across operators
* For-loop type modes (int/float/mixed)
* Table key equivalence and normalization
* Edge cases with zero, -0.0, and special values
* Standard library `type` and `math.type`

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

* Code refactor and deduplication

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

---------

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2026-02-02 15:52:03 +01:00
Lajos PappandGitHub e1d7f5cbed Fix diff styles in code fence (#1807) 2026-02-02 11:53:43 +01:00
Metin YaziciandGitHub 0dece6c135 Some authentication fixes (#1804) 2026-01-31 17:07:35 +01:00
LogeshandGitHub aa6f705781 Avoid decorating attributes when cursor is in range (#1805) 2026-01-31 16:54:48 +01:00
Lajos PappandGitHub 443c009e10 Update HEALTHCHECK command to use SB_PORT variable (#1806) 2026-01-31 08:03:30 +01:00
Zef Hemel 85ac15546f Update LIQ query slash commands to use from o = syntax (performance,
better practice)
2026-01-30 08:36:03 +01:00
Zef Hemel 13b17110eb Order Linked Mentions by page last modified (desc)
* Adds `pageLastModified` to `link` objects, and use it for Linked
  Mentions
2026-01-30 08:33:32 +01:00
Zef Hemel c503cd5228 Fix: task locators in transclusions based on headers
* Fixes offset support in parsing (I hope)
* Properly assigns task locators in tasks when using e.g.
  `![[page#header]]` transclusions
2026-01-30 08:22:48 +01:00
Zef Hemel 923b18eba6 Update CHANGELOG.md 2026-01-29 15:44:10 +01:00
Zef Hemel 479d8051ff Make file writes synchronous
When writing a file to the service worker, it will no _immediately_
trigger a single file sync and only return when it completes.
2026-01-29 15:14:53 +01:00
Zef Hemel b0cd9e9f02 Rename plugAwareConflictResolver to stdLibAwareConflictResolver 2026-01-29 15:04:30 +01:00
Zef Hemel c41552f938 Slight document detection code refactor 2026-01-29 14:30:11 +01:00
Zef Hemel c2d7dfbdf8 Exclude .plug.js and .js.map files from document picker (messy). 2026-01-29 14:29:52 +01:00
Zef Hemel a018e7c1f5 Remove Plugs: Update keyboard shortcut
Part of slow deprecation of the plug manager (in favor of the newer
Library manager)
2026-01-29 14:29:18 +01:00
Zef Hemel c1a858056c Remove no_sandbox sandbox
Not used
2026-01-29 12:20:56 +01:00
Zef Hemel d63a679657 Navigate to library page after install 2026-01-29 12:18:40 +01:00
Zef Hemel d697d62a3b Enable Space: Reindex in RO mode, because, why not? 2026-01-29 12:18:27 +01:00
Zef Hemel d14695abf4 Iterations on tag.define
* Now also supports setting a custom metatable (replacement of
  index.defineTag)
* Load tag.define API on boot so can be used for initial client index
  from CONFIG
* Docs and examples
2026-01-29 11:07:28 +01:00
Zef Hemel 0303585039 Remove last remnants of 📅 deadline syntax 2026-01-29 11:05:36 +01:00
Metin YaziciandGitHub 10520ffb3d Configure remember me option (#1796)
* Configure remember me option

* Update Configuration.md
2026-01-29 08:13:50 +01:00
Matouš Jan FialkaandGitHub e5b4c8feb2 Space Lua: Refactor control flow signals (#1794)
* Space Lua: Refactor control flow signals

Removes "return throws an exception" failure mode. @zef :)

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

* Remove unused function

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

* Remove another unused function

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

* Remove unused `LuaBreak`/`LuaReturn` exception control flow

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

---------

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2026-01-29 08:07:26 +01:00
Matouš Jan FialkaandGitHub 5a20a5f8f4 Space Lua: Align arithmetical error messages with Lua 5.4 (#1793)
* Space Lua: `<close>` attribute, `__close` metamethod and extensive tests

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

* Space Lua: Align arithmetical error messages with Lua 5.4

**Fixes:**

- Tighten `tonumber` semantics to accept hex floats like `0x1.2` while
  keeping plain hex as integers.

- Improve Lua compatibility by fixing relational `>`/`>=` operand
  ordering to preserve correct error type direction.

**Changes:**

- Update concatenation errors to include the operand type.

- Add `LuaStringCoercionError` from numeric coercion and handle it
  in `luaOp()` to emit correct messages (or fallback).

- Raise

  > `bad argument #2 to 'tonumber' (base out of range)`

  for invalid bases.

- Update test suite

**Notes:**

- The `arithmetic_test.lua` test suite now passes if run with Lua 5.4.

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

* Run `make fmt`

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

* Rename `assert_throws` to `assertThrows` in Lua test suite

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

* Replace `LuaStringCoercionError` class with sentinel constant

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

---------

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2026-01-29 08:04:27 +01:00
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 9a7739e174 lint fix 2026-01-27 16:45:59 +01:00
Zef Hemel c908656cb2 Readd queryLuaObjects and getObjectByRef as index plug functions
for backwards compatability
2026-01-27 16:45:17 +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 6f8c8bda64 Deployment notes on file systems 2026-01-27 10:33:56 +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
Nick SavageandGitHub fe800417bc Adjust some documentation (#1788) 2026-01-25 14:38:53 +01:00
Zef Hemel fa49044cf0 PayPal funding option 2026-01-24 16:40:41 +01:00
Zef Hemel ff7de2de35 Bump Deno to 2.6.5 but fix it there, 2.6.6 is broken 2026-01-23 20:15:51 +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