Commit Graph
2120 Commits
Author SHA1 Message Date
Lennart OchelandGitHub 16d947b285 Remove common/space_lua/stdlib/math.md (#1371) 2025-05-04 20:35:02 +02:00
wbhoustonandGitHub c0f68f0906 Add notes on Space Lua Pattern Matching (#1366) 2025-05-02 07:36:04 +02:00
Zef Hemel 73f6b09d02 Refactor read_file to readFile which never worked 2025-04-30 19:55:15 +02:00
Zef Hemel 3e6aa22efd Updated README to be more consistent with website 2025-04-30 11:06:35 +02:00
Zef Hemel 3e6097a964 vim related styling fixes 2025-04-30 11:02:33 +02:00
Marek S. ŁukasiewiczandGitHub 39be21e475 Mention answers to recent forum questions on website (#1358)
* Add another example line to Frontmatter.md

Add another line which shows that page references should be quoted and pascalCase convention

* Mention feather icons in config documentation

* Add a query example to select based on folder

This is relevant for Quick Notes
2025-04-30 11:02:13 +02:00
Marek S. ŁukasiewiczandGitHub b73dadec67 Add optional argument to template.each for empty collection output (#1359)
When omitted, the function outputs empty string for empty table as before.
The feature was motivated by the Maintenance page in v1 that showed messages
instead of just empty blocks (ported over).
2025-04-30 11:01:39 +02:00
Marek S. ŁukasiewiczandGitHub b9488b45c8 Fix table constructor in editor.filterBox example (close #1344) (#1360)
Also added description field from FilterOption, others didn't seem relevant
2025-04-30 11:01:00 +02:00
Lennart OchelandGitHub 3cf67f7cce Dynamic App Name Loading for Auth Page (#1361) 2025-04-30 11:00:15 +02:00
Marek S. ŁukasiewiczandGitHub 971e19f591 Add Lua features for integers (#1363)
* Parse hexadecimal numeric constants in Lua

Fix lua grammar to not require a "+" after "e" in numbers.
Add tests for parsing correct number value.

* Implement bitwise operators in Lua

They throw an error when called on fractional values,
like Lua 5.4 but with a hint to round them manually.
2025-04-30 10:58:45 +02:00
Zef Hemel 85310e915d codemirror-vim mode version bump 2025-04-30 09:18:46 +02:00
Zef Hemel 3356a3bc5f Update Datastore API documentation to reflect key format changes from string to list for keys in set, get, and delete operations. 2025-04-28 18:52:09 +02:00
Zef Hemel 444755bbf0 Moved website warning 2025-04-26 14:33:03 +02:00
wbhoustonandGitHub 6be32d73bf Fix hashes in code blocks interpreted as titles in ToC (#1354)
https://github.com/silverbulletmd/silverbullet/issues/1351
2025-04-25 19:00:22 +02:00
wbhoustonandGitHub c35c3a0a58 Add priority to mentions and linked tasks templates (#1355)
https://github.com/silverbulletmd/silverbullet/issues/1349
2025-04-25 18:58:08 +02:00
Nick SavageandGitHub 6d83a5a3ed Add desc to query example to work as described (#1356)
Per https://community.silverbullet.md/t/query-ordered-by-lastmodified-does-not-work-as-expected-with-the-example/2252
2025-04-25 18:57:42 +02:00
Zef Hemel 019f8d3b1b Adding note on SETTINGS to migration doc 2025-04-24 20:07:54 +02:00
Zef Hemel d7e8ab1ea5 Fix lint 2025-04-18 09:34:14 +02:00
Zef Hemel 286ad5e048 Update Deno version to 2.2.10 in Dockerfile and workflow files 2025-04-18 09:05:28 +02:00
Zef Hemel a61ef2f8df Version number fix 2025-04-18 09:04:35 +02:00
Zef Hemel d0bad5ce30 Bump reported version number to 2 2025-04-18 09:03:03 +02:00
Nico S.andGitHub d43697e9a4 tag-page: changed order of queries (#1342) 2025-04-17 21:55:36 +02:00
Nico S.andGitHub aa20de14f2 Added paragraphs to tag-page (#1341) 2025-04-17 21:55:09 +02:00
Zef Hemel 1c1a84c63e Website content 2025-04-17 16:53:32 +02:00
Zef Hemel 199d553a81 Switch playground to v2 2025-04-17 16:37:44 +02:00
Zef Hemel 7b9b8fb12a Last tweaks before merging v2 into main 2025-04-17 16:32:14 +02:00
Zef Hemel 65cd6e7585 Enhance language core tests with comprehensive pairs and ipairs validation
- Modified the `assertEqual` function to include a custom message for assertion failures.
- Added tests for empty tables and JavaScript arrays to verify correct behavior of `pairs` and `ipairs`.
- Implemented checks for mixed key types and ensured `ipairs` only iterates over numeric indices, validating the expected values.
2025-04-17 15:23:59 +02:00
Zef Hemel 63db06a8c6 Fixed recently opened page tracking, fixed deletion of page when using dynamic index page 2025-04-17 14:44:38 +02:00
Zef Hemel 55fdaa2466 Added intro video 2025-04-17 14:14:53 +02:00
Zef Hemel cde017cda0 Fix broken links 2025-04-17 13:01:02 +02:00
Zef Hemel d4033763f7 Enhance link indexing logic for meta template pages
- Added a check to skip indexing links for pages tagged as "meta/template" to prevent indexing links there.
- Updated the documentation in `Spaces.md` to remove redundant information regarding git repository usage for space folders.
2025-04-17 12:59:53 +02:00
Zef Hemel 2df06fccfc Update Markdown documentation for code blocks and hashtags
- Changed the fenced code block notation from "template-type" to "language" for clarity in the Fenced Code Blocks documentation.
- Removed outdated example code from the Hashtags documentation to streamline content and improve focus on relevant information.
2025-04-17 12:07:46 +02:00
Zef Hemel 34557e0575 Update documentation for consistency and clarity
- Revised multiple documentation files to correct references and improve clarity, including updates to the Command Palette, Document Editor, and various Markdown files.
- Removed outdated references to "Slash Templatese" and replaced them with "Slash Templates" for consistency.
- Enhanced explanations regarding meta pages and shortcuts, ensuring accurate guidance for users.
2025-04-17 12:04:20 +02:00
Zef Hemel 2ac30edb2f Update configuration documentation and remove deprecated templates
- Enhanced the `Config.md` documentation to clarify built-in configuration options and the use of the `config.set` API.
- Removed outdated `Page Template.md` and `Slash Template.md` files to streamline documentation and avoid confusion.
- Updated references in various documentation files to reflect the removal of deprecated templates and ensure consistency across the site.
2025-04-17 11:55:09 +02:00
Zef Hemel 487f6b7c9b Add stdLibPrefix constant and update SyncService logic
- Introduced a new `stdLibPrefix` constant in `constants.ts` for standard library paths.
- Updated the import statement in `sync_service.ts` to include `stdLibPrefix`.
- Modified the logic in `SyncService` to check for both `plugPrefix` and `stdLibPrefix` when validating names.
2025-04-15 09:58:24 +02:00
Zef Hemel e1a6643d9a Website documentation work 2025-04-06 21:49:15 +02:00
Zef Hemel 50d26619e8 Put back space.*attachment syscalls for backwards compatibility 2025-04-06 20:41:00 +02:00
Zef Hemel b681e4dfc6 Remove debug print statement from page template command function 2025-04-06 13:44:27 +02:00
Zef Hemel 44d8fe4467 Implement slash command templates and enhance Lua command functionality
- Introduced a new system for defining slash commands using templates, allowing for easier command creation and management.
- Added multiple slash command templates, including for functions, queries, and admonitions, with specific context handling.
- Enhanced existing Lua command definitions to support new template-based commands and improved context filtering.
- Updated the `template.fromPage` function to handle raw template text, enabling more flexible command definitions.
2025-04-06 10:08:06 +02:00
Zef Hemel 18df394ef8 Add page template functionality and restructure existing templates
- Introduced a new page template system to automate page creation based on defined templates.
- Added configuration options for templates, including suggested names, confirmation prompts, and keyboard shortcuts.
- Created a new "Quick Note" template with specific command and key bindings.
- Removed the old "Page Templates" file and integrated its content into the new structure for better organization.
2025-04-06 08:59:49 +02:00
Zef Hemel f991a25a5a Add page existence check and improve cursor placeholder handling
- Introduced `pageExists` function in `space.ts` to verify if a page exists in the space.
- Enhanced cursor placeholder handling in `editor.ts` to prevent errors when the placeholder is not found, ensuring smoother text manipulation.
2025-04-06 08:59:22 +02:00
Zef Hemel a7719bdf3a Improve service worker config fetching logic
- Added caching mechanism for client configuration to enhance performance and reliability.
- Implemented a timeout for fetching fresh config, falling back to cached config in case of errors or timeouts.
- Updated error handling to ensure proper responses when fetching fails, including returning a 404 status when no config is available.
2025-04-05 20:35:07 +02:00
Zef Hemel 56b9caabab Create FUNDING.yml 2025-04-04 20:56:30 +02:00
Zef Hemel b62cef6d92 Add tag definition and registration to ScriptEnvironment
- Introduced a new `TagDef` type to define tags with optional schema and metatable.
- Added `registerTag` method in `ScriptEnvironment` to register tags.
- Updated `indexSyscalls` to handle tag registration and enrich query results with tag metadata.
- Modified `queryLua` and `DataStore` to support an optional enricher function for enhanced data processing.
2025-04-04 16:56:27 +02:00
Zef Hemel b07823a53c Refactor pairs function for improved type handling
- Updated the `pairsFunction` to specify that keys can be of type `string` or `number`, enhancing type safety.
- Corrected a comment for clarity regarding key retrieval from plain JavaScript objects, ensuring accurate documentation.
2025-04-04 09:14:53 +02:00
Zef Hemel 3440217a88 Enhance tonumber function in Lua standard library
- Updated the `tonumber` function to support optional base conversion, allowing for binary, octal, decimal, hexadecimal, and base 36 inputs.
- Added validation for invalid bases and non-numeric strings.
- Introduced comprehensive tests for various `tonumber` scenarios in `language_core_test.lua` to ensure correct functionality.
2025-04-04 09:11:13 +02:00
Zef Hemel 4b52da3d86 Missing API docs 2025-04-03 18:09:51 +02:00
Zef Hemel d9ff98e050 Enhance Lua function handling with promise support and update global object exposure
- Modified `luaCall` and `luaValueToJS` functions to handle promises, allowing asynchronous execution of JavaScript functions from Lua.
- Updated the `jsApi` to expose the global `globalThis` object instead of `window`, improving compatibility across different environments.
2025-03-31 17:44:55 +02:00
Zef Hemel a7191d540a Expose htmlEscape function for external use and integrate it into the HTTP server response handling to sanitize DESCRIPTION values. 2025-03-31 16:03:35 +02:00
Zef Hemel bf8646d89d Biting the bullet: exposing the JS window object to Lua
- Added a convenience function for creating HTML widgets, streamlining widget creation.
- Enhanced the key retrieval logic in the pairs function to ensure it captures prototype keys correctly.
- Exposed the global window object in the jsApi for better access to DOM functions.
2025-03-31 15:51:02 +02:00