Commit Graph
2683 Commits
Author SHA1 Message Date
Zef Hemel 484c746bf0 Reduce widget "flapping" 2026-01-08 16:01:42 +01:00
Zef Hemel 5e5ef0fb85 Fixes #1754
Adds `links` and `ilinks` attributes to `task` and `item` objects.
2026-01-08 15:03:48 +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 ff60237d95 use readPageWithMeta syscall to reduce indexing cost 2026-01-08 14:06:58 +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 1e20b9e1f5 Website upgrade 2026-01-08 11:45:34 +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
Zef Hemel 3c15b6301b Mock fix 2026-01-07 16:30:43 +01:00
Zef Hemel 686b3affe1 Merge branch 'index-refactor' 2026-01-07 16:27:14 +01:00
Zef Hemel aa9132d918 Further bug fixes and optimizations 2026-01-07 16:26:43 +01:00
Zef Hemel bd5ea26b45 index time reporting 2026-01-07 15:51:33 +01:00
Zef Hemel 596b92cd55 Reindex refactor feature complete 2026-01-07 15:44:04 +01:00
Zef Hemel c93d656ac6 Significant refactor of index
* Moved YAML library import to index plug (so no async syscalls anymore)
  should speed things up
* Merged task and item indexing
* Merged tasks plug into index (questionable)
* taskstate is now no longer a tag, but needs to be configured via
  configs
2026-01-07 11:00:32 +01:00
Zef Hemel 9eba693ffd Remove dead code 2026-01-06 15:39:08 +01:00
Zef Hemel 2470bea0b5 Start of rudementary refactoring of indexing Making index logic actually
testable. Three indexers migrated:
* page
* data
* item
2026-01-06 12:21:02 +01:00
Zef Hemel 46b12d2a41 Rename editor to client 2026-01-06 12:19:39 +01:00
Zef Hemel 24a03e1073 CHANGELOG updates 2026-01-05 15:44:00 +01:00
Zef Hemel 38f411baa3 Disables indexing all paragraphs by default
To enable: `config.set("index.paragraph.all", true)`
2026-01-05 15:36:40 +01:00
Zef Hemel 658f6e4e18 Undoes the 2 stage index
This caused too many edge cases. Will work on optimizing the one-pass
index instead (not part of this commit).
2026-01-05 15:34:45 +01:00
dkoosis@gmail.comandZef Hemel fa2d6d9a2d Fix HTTP 500 errors locking client outside offline mode
When the server returns HTTP 500 or other 5xx errors, the client
was caching the error HTML page (e.g., Nginx error pages) and
attempting to parse it as JSON on boot, causing a lockout with
the message 'Could not process config and no cached copy'.

This fix adds all standard 5xx server error codes to the
offlineStatusCodes list, ensuring the client enters offline mode
and uses cached data instead of caching error responses.

Before: Only 502, 503, 504, 530 triggered offline mode
After: All 5xx errors (500-511, 530) trigger offline mode

Fixes #1724
2026-01-05 14:55:15 +01:00
Evgeny ZislisandGitHub eda9f17915 Fix Lua widgets not re-rendering when page metadata loads (#1759)
Trigger editor re-render after page metadata is loaded to ensure Lua
widgets re-evaluate with the correct context. This fixes issue #1729
where widgets would show broken state on initial page load because
ctx.currentPage would be nil until the metadata finished loading
asynchronously.

The fix dispatches an empty CodeMirror transaction after updating the
page metadata, which triggers all decorator state fields (including
Lua widgets) to re-render with the updated metadata.
2026-01-04 14:23:09 +01:00
Zef HemelandGitHub 8719e15f2e Shields in README 2025-12-27 17:03:46 +01:00
Zef Hemel 34a5b2d508 Edge changelog updates 2025-12-19 16:17:34 +01:00
Zef Hemel f9be584dce Deno version fix attempt 2025-12-19 15:18:52 +01:00
SebastianandGitHub 4fd2d71fbd Improve hamburger menu behavior in mobile mode (#1723) 2025-12-19 15:14:36 +01:00
Zef Hemel b96c56d84e Deno upgrade to 2.6.1 2025-12-18 11:49:56 +01:00
Justyn ShullandGitHub b9bbb32051 Fix missing x-proxy-headers- from non-lua fetch calls (#1721)
* Fix missing x-proxy-header- on proxied fetch calls

* Don't use https for host.docker.internal proxied urls
2025-12-11 12:06:31 +01:00
Zef Hemel d5aa4e9354 Clarify authentication proxies 2025-12-10 17:08:30 +01:00
Zef Hemel 178cf2d01f Fix in error propagation during boot 2025-12-10 16:43:16 +01:00
Zef Hemel 2772cd408f Switch silversearch to edge build 2025-12-10 10:11:26 +01:00
Zef Hemel 992d83f015 Fixes #1720
Stop intercepting exceptions during single file sync so they become
visible in the UI
2025-12-10 10:05:07 +01:00
Zef Hemel 2efeb93b47 Implements #1707
This splits indexing into two phases:

* preindex (where only pages, space lua, space styles are indexed)
* index (where everything else is indexed)

The goal is to get to more-or-less operational state quicker this way,
because probably most functionality can already be enabled after the
pre-index phase.
2025-12-10 09:48:09 +01:00
Zef Hemel 5d9caacc30 Add source for change to URL decoding 2025-12-10 09:48:02 +01:00
Thomas JostandGitHub bd132dacb2 Include sourcemaps in production builds (#1717)
This makes it easier to debug issues, but also to understand SilverBullet
internals while developing new features in Space Lua.

Fixes #1699.
2025-12-10 09:30:32 +01:00
Zef Hemel 4473164c96 Merge branch 'main' of github.com:silverbulletmd/silverbullet 2025-12-10 09:28:08 +01:00
Michael WeichertandGitHub 78b0b3ae9f feat: Add linkName attribute support for wiki link autocomplete (#1712)
Add support for a linkName frontmatter attribute that controls the alias
text inserted during wiki link autocomplete. The precedence order is:
linkName > displayName > page name.

This allows users to have separate link text from display name. For example,
a page for "Randy Mario Poffo" can have linkName: "Randy Savage" and
displayName: "Macho Man", resulting in [[Randy Mario Poffo|Randy Savage]]
when selected from autocomplete.
2025-12-10 08:39:45 +01:00
Laurence TanandGitHub 30ecaa3985 Fix HEIC/HEIF image MIME type detection (#1709)
* fix content types

* PR feedback
2025-12-10 08:37:14 +01:00
Ohad LutzkyandGitHub f45fcdeb68 Handle error 530 (#1719) 2025-12-06 18:44:22 +01:00
Zef Hemel 8c07783460 Only show offline error for offline errors 2025-12-06 17:17:32 +01:00
Michael WeichertandGitHub 1743fe4464 Fix documentation: rename net.proxyRequest to net.proxyFetch (#1718) 2025-12-06 12:21:55 +01:00
Zef Hemel b4f8a0ce8b Fixes #1091 In case an auth proxy (such as CF Zero Trust) attempts a
redirect, SB now kills the service worker and reloads in the hope that
the redirect will actually kick in.
2025-12-05 15:27:50 +01:00
Matouš Jan FialkaandGitHub 5b03ed872c Space Lua: Add <const> attribute (#1715)
* Space Lua: Implement <const> attribute

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

* Space Lua: Implement <const> attribute

- Add Lua attributes with parse time validation
- Add `<const>` attribute semantic tests

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

---------

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2025-12-03 15:44:15 +01:00
Zef HemelandGitHub ff02481ede Add Patreon funding option 2025-12-01 19:01:13 +01:00
Michael WeichertandGitHub ba7d8ce5a6 feat: Improve Lua go-to-definition with Ctrl-click support and user feedback (#1713)
- Accept Ctrl-click (Linux) in addition to Cmd-click (Mac) for navigation
- Show flash notification when definition cannot be found (built-in or non-Lua)
2025-12-01 14:13:11 +01:00