Commit Graph
2120 Commits
Author SHA1 Message Date
Zef Hemel db62692d5a - Start of a migration guide
- Included a warning at the top of the SilverBullet documentation indicating that it is for version 2, which is still in progress.
- Provided a link to version 1 for users preferring a stable version and included a note about active development on v2.
2025-03-30 21:21:33 +02:00
Zef Hemel ed35a9d390 Bringing back the hamburger menu on mobile by default 2025-03-30 20:42:46 +02:00
Zef Hemel 26a72ea8df Remove share functionality and related components, replaced with import and export infrastructure
- Deleted the `share` plug, including its associated files and YAML configuration.
- Removed references to share options and commands from the codebase.
- Cleaned up unused event listeners and functions related to sharing content.
2025-03-30 16:09:45 +02:00
Zef Hemel 453cb912d9 Refactor Lua built-in functions for improved type handling
- Updated `ipairsFunction` and `pairsFunction` to accept both `LuaTable` and array types, enhancing flexibility.
- Modified `eachFunction` to support arrays, ensuring consistent behavior across different data structures.
- Added type checks and adjusted key retrieval logic for better compatibility with JavaScript objects.
2025-03-30 15:03:57 +02:00
Zef Hemel 449c4da4c6 Implement YAML patching functionality and enhance tests
- Added `yaml.patch` syscall to apply patches to YAML strings using the new `applyPatches` function.
- Updated tests to cover a wider range of scenarios, including edge cases and preservation of comments and formatting.
- Refactored existing tests to utilize the new patching logic, ensuring comprehensive coverage of YAML operations.
2025-03-30 14:30:51 +02:00
Zef Hemel 8ab2c624e7 Lint fixes 2025-03-30 13:04:43 +02:00
Zef Hemel be86e53398 Implement new slash commands and enhance editor functionality
- Added slash commands for inserting today's, yesterday's, and tomorrow's dates.
- Introduced new admonition commands for notes and warnings.
- Implemented a table command for quick table insertion.
- Enhanced the `insertAtCursor` function to support a cursor placeholder option.
- Updated `getSelection` to return the selected text along with cursor positions.
- Added a new widget function to display linked tasks in the editor.
2025-03-30 13:03:57 +02:00
Zef Hemel a0807b052f Add YAML patching tests and implement serialization logic
- Introduced comprehensive tests for applying minimal set key patches in YAML, covering various scenarios including scalar operations, adding new keys, list operations, and handling of empty values.
- Implemented serialization functions to convert JavaScript types to YAML format, ensuring proper handling of scalars, arrays, and objects.
- Enhanced the `applyMinimalSetKeyPatches` function to support patching of top-level keys while preserving comments and formatting.
2025-03-30 13:03:32 +02:00
Zef Hemel c25a3bf0eb Fix string.find with plain = true 2025-03-29 22:07:31 +01:00
Zef Hemel f429e1f7b2 Attempt to address /.config auth issues 2025-03-29 19:20:11 +01:00
Zef Hemel 4d2299df41 Enhance page list caching logic in Client class
- Introduced checks for initial sync completion before updating the page list cache.
- Updated logic to fetch pages based on sync status and index plug availability.
- Added tagging for meta pages starting with "Library/" during direct fetch.
- Initialized empty tags array for file metadata in fileMetaToPageMeta function.
2025-03-29 15:48:49 +01:00
Zef Hemel 41559f1b06 Merge branch 'v2' of github.com:silverbulletmd/silverbullet into v2 2025-03-29 13:07:50 +01:00
Zef Hemel c2ab44699b Add back pageDecoration.disableTOC support 2025-03-29 13:07:21 +01:00
Zef Hemel 5b9122eb62 Fix very subtle Lua async bug 2025-03-28 18:25:47 +01:00
Zef Hemel 45b767fd3c Lua widgets: html can now also be a DOM node
Encoding some more space lua priorities and documenting them
2025-03-28 17:38:32 +01:00
Zef Hemel c28e7aacf5 Fixes #1311 2025-03-28 15:57:46 +01:00
Zef Hemel 1703020a8a feat: Add logout option to client wipe functionality
- Add optional logout parameter to system.wipeClient

- Add new 'Clear Local Storage & Logout' command

- Update API to support logout parameter

- Clean up server code comments
2025-03-28 13:45:39 +01:00
Zef Hemel 2787c40ebe Better Lua parse error reporting 2025-03-28 12:50:35 +01:00
Zef Hemel 64e537732b Debug: Reset Client is now called System: Wipe Client
Merged two datastores into one (for both state and files), this will trigger a resync on upgrade
2025-03-28 12:17:17 +01:00
512c85bbcb Add support for application/xml content type in lua http.request (#1320)
Co-authored-by: Long Hoang Nguyen <roman_nguyen@gatech.edu>
2025-03-27 19:11:56 +01:00
Zef Hemel 96f299bf8a Shell streaming support (Lua) 2025-03-27 17:04:15 +01:00
Zef Hemel 4587496406 Out of date docs purge 2025-03-26 19:49:44 +01:00
MrMugameandZef Hemel d3e79ea4a7 Catch event in capturing phase instead of bubbling phase (#1315)
This is should be the default behaviour as silverbullet keybinds should always have priority over keybinds implemented by document editors
2025-03-26 19:43:00 +01:00
Zef Hemel d08c8cef20 Fix plugs and plug updating 2025-03-26 19:42:51 +01:00
Zef Hemel 706588cd56 Bringing in config and config docs 2025-03-26 17:46:35 +01:00
Zef Hemel 9c3c4a9098 Fix not detecting changes regression, plus cleanup 2025-03-26 10:27:13 +01:00
Zef Hemel e6a45f213a Remove temporal 2025-03-25 18:55:27 +01:00
Zef Hemel 6428159e80 Revert to deno 2.2.4 for actions 2025-03-24 20:24:49 +01:00
Zef Hemel 5f6b26813f Docker build 2025-03-24 20:23:34 +01:00
Zef Hemel 254d6e6379 Ripped out use of Deno KV and other unstable features 2025-03-24 20:21:17 +01:00
Zef Hemel 4616cb19e2 Fix logout & clean command 2025-03-24 19:50:48 +01:00
Zef Hemel 130b5b179a config.* syscalls 2025-03-24 17:44:09 +01:00
Zef Hemel 0bc5cb7356 Library/Std moved to top level, now bundled in same way as plugs 2025-03-24 17:08:04 +01:00
Zef Hemel 771c1606ed Textual changes 2025-03-23 16:12:44 +01:00
Zef Hemel 4191fa5d4b Port https://github.com/silverbulletmd/silverbullet/pull/1310 2025-03-23 15:58:34 +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 1ea480eb0d Deploy v2 2025-03-22 20:57:08 +01:00
Stan Ionitoiu-JanssenandZef Hemel 6b2390badf fix(menu): Move sync progress wrapper outside of actions menu (#1309) 2025-03-22 20:47:37 +01:00
Zef Hemel 953f84d4b5 More manifest cleanup 2025-03-22 08:50:39 +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 ac5a839ea8 Moving some endpoints 2025-03-22 07:32:27 +01:00
Zef Hemel da9e11f0f0 Fixes #1306 2025-03-21 19:45:26 +01:00
Zef Hemel 672bd97b6e More cleaning 2025-03-21 17:38:43 +01:00
Zef Hemel 6e551cd245 Lua: cron:secondPassed event 2025-03-21 17:38:25 +01:00
Zef Hemel b1421dc030 Update table.find API 2025-03-21 16:48:30 +01:00
Zef Hemel cbbecf2ad0 Reimplement tag pages using editor:pageCreating event 2025-03-21 16:40:03 +01:00
Zef Hemel fa6975870a Fix docker builds 2025-03-21 16:12:10 +01:00