Commit Graph
3038 Commits
Author SHA1 Message Date
Zef Hemel fdf6a97f97 Lua: expose all template.* syscalls 2025-03-15 20:52:34 +01:00
Zef Hemel 64be2db120 Small fix 2025-03-14 21:50:06 +01:00
Zef Hemel 500304cd43 Remove yaml query function, too heavy weight 2025-03-14 17:27:24 +01:00
Zef Hemel ad2a0dca38 Remove plugmanager test, not testable this way anymore 2025-03-14 17:20:11 +01:00
Zef Hemel 346f3125e9 Reduce plugmanager bundles size by 800kb by not including all of CodeMirror :D 2025-03-14 17:18:20 +01:00
Zef Hemel dde532d1b6 Added silverbullet lua:repl command 2025-03-14 16:43:13 +01:00
Ohad LutzkyandGitHub cde2155ac3 Use writer to ensure the entire file is written (#1287)
Using file.write directly once doesn't guarantee the entire file is
written; see https://docs.deno.com/examples/writing_files/
2025-03-14 16:02:18 +01:00
Zef Hemel cf3a704d03 Small website tweaks 2025-03-14 16:00:21 +01:00
Zef Hemel 6307ce4242 Lua widget revamp 2025-03-14 15:58:01 +01:00
Zef Hemel c85fb17145 Improved Lua string library 2025-03-14 15:56:53 +01:00
Zef Hemel 934de0938d Lua: add Ctrl/Cmd-click navigation 2025-03-14 11:35:43 +01:00
Zef Hemel 418138f9c9 Lint fixes 2025-03-14 10:37:30 +01:00
Zef Hemel 98befe3a33 Lua widget event support 2025-03-14 10:36:41 +01:00
Zef Hemel f514ef1b53 Lua: support passing Lua function callbacks to native JS functions 2025-03-14 10:02:25 +01:00
Zef Hemel def7bf6a2f Hono dependency upgrade 2025-03-14 10:02:25 +01:00
Zef Hemel 977f87864d Dependency bumps 2025-03-14 10:02:25 +01:00
Zef Hemel 2e6a2a3adf Dependency bumps 2025-03-14 10:02:25 +01:00
MrMugameandGitHub d3cc3e0d48 Add image viewer (#1289)
* Fix legacy support for navigation

* Fixes timing issue with document editors

If silverbullet was directly loaded into a document editor it would set
the darkmode after loading the editor, causing a wrong value to be
passed

* Add basic `image-viewer`

This add adds a basic image viewer using the panzoom library from Timmy
Willison

* Svgs somehow don't accept 100% width

* Make `internal` a property of a message

* Add `editor.sendMessage` syscall

* Update forgotten internal syscall

* Add small info command to image-viewer

* Change indent to two spaces

* Move zoom in button to the right

* Switch rotation direction

* Display mime type instead of file extension
2025-03-14 09:42:23 +01:00
Zef Hemel 6dfc342594 Fix crash on sync mode first load after update, no longer wait for space scripts to load before starting editor 2025-03-14 09:33:17 +01:00
Zef Hemel 29076afe95 Fix lint issues 2025-03-13 09:21:03 +01:00
Zef Hemel a56ef0b897 Add system.serverSyscall syscall 2025-03-13 09:10:37 +01:00
Zef Hemel 808fdd13c0 Restrict sending CORS headers to non-dangerous HTTP methods 2025-03-13 09:10:20 +01:00
Stan Ionitoiu-JanssenandGitHub a8ceee869b Fixes #1086 - search returns -1 if no match is found (#1288) 2025-03-12 18:10:23 +01:00
Zef Hemel 217e84acd1 Claude docs 2025-03-11 12:11:31 +01:00
Zef Hemel 1881fa8af9 Lua: work to make more table APIs work with native JS arrays 2025-03-10 17:31:02 +01:00
Zef Hemel 7ff0d17ba1 Fixes #1285 2025-03-10 16:24:06 +01:00
Zef Hemel 242ae73078 Lua: fix some subtle Lua-isms 2025-03-09 15:37:38 +01:00
Zef Hemel 29c2781c11 lint fix 2025-03-08 20:55:30 +01:00
Zef Hemel 3b3e6991bc Lua: string.format implementation 2025-03-08 20:54:43 +01:00
Zef Hemel 2274b5874d Fixes #1280 2025-03-08 18:37:32 +01:00
Zef Hemel 64feb6e608 parentNodes added to page:click event 2025-03-08 18:35:08 +01:00
Zef Hemel 62346e719a Add pandoc and texlive to docker image 2025-03-08 18:35:08 +01:00
MrMugameandGitHub 51b0fcd819 Combine reload functions in client (#1283) 2025-03-08 17:17:29 +01:00
Zef Hemel 922e4bfe49 Lua: fixed subtle issue where singlular expression statements wouldn't await finishing 2025-03-08 10:17:10 +01:00
Zef Hemel 7c68501696 Fix page creation 2025-03-07 21:09:49 +01:00
Zef Hemel e58859db43 Bump Deno version and include pandoc in the Docker image 2025-03-07 21:03:32 +01:00
Zef Hemel 9ed61e791d Re-enable shell APIs from Lua 2025-03-07 21:03:15 +01:00
Zef Hemel 7f666e7481 Add confirmation before deleting document 2025-03-07 20:59:46 +01:00
MrMugameandGitHub 81d3732dd2 Update currentPath on file change (#1282) 2025-03-07 20:31:42 +01:00
Zef Hemel f2dd104063 Fix indexing edge case 2025-03-07 16:41:14 +01:00
Zef Hemel e6884d965a Lint issues 2025-03-07 16:05:59 +01:00
Zef Hemel 3e0cfcc48a Don't double filter file lists based on spaceIgnore 2025-03-07 16:04:52 +01:00
Zef Hemel 7e706754f4 Enable client file listing for plugs 2025-03-07 16:04:36 +01:00
Zef Hemel d33db399c8 Auto complete and lint fixes 2025-03-07 15:13:47 +01:00
Zef Hemel a339800e75 Set SB_INDEX_PAGE for silverbullet.md 2025-03-07 15:10:24 +01:00
Zef Hemel 0a80c5c537 Collapse PageRef, DocumentRef and LocationRef into a single Ref type 2025-03-07 13:49:20 +01:00
Zef Hemel b29d8245b2 Completion fixes 2025-03-07 13:13:45 +01:00
Zef Hemel 30617a9ee7 Disable emoji completion in code blocks 2025-03-07 13:13:14 +01:00
Zef Hemel e56ff4ab07 Disable spell check on coding languages 2025-03-07 13:12:31 +01:00
Zef Hemel 549b73c37d Lua: optimize returns to no longer leverage exception throwing in the common case 2025-03-07 12:42:12 +01:00