Commit Graph
126 Commits
Author SHA1 Message Date
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 50d26619e8 Put back space.*attachment syscalls for backwards compatibility 2025-04-06 20:41:00 +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 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 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 4616cb19e2 Fix logout & clean command 2025-03-24 19:50:48 +01:00
Zef Hemel 55be05031c Markdown widget removal 2025-03-22 08:40:26 +01:00
Zef Hemel ac5a839ea8 Moving some endpoints 2025-03-22 07:32:27 +01:00
Zef Hemel e7dc879722 More progress 2025-03-21 16:12:10 +01:00
Zef Hemel fa8f07a123 Kinda working 2025-03-21 16:12:10 +01:00
Zef Hemel d50ddc2357 First very rough pass of cleanup 2025-03-21 16:12:07 +01:00
Zef Hemel 0812ba8287 Added some convenience editor syscalls 2025-03-16 15:53:00 +01:00
Zef Hemel dde532d1b6 Added silverbullet lua:repl command 2025-03-14 16:43:13 +01:00
Zef Hemel 6307ce4242 Lua widget revamp 2025-03-14 15:58:01 +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 d33db399c8 Auto complete and lint fixes 2025-03-07 15:13:47 +01:00
Zef Hemel 0a80c5c537 Collapse PageRef, DocumentRef and LocationRef into a single Ref type 2025-03-07 13:49:20 +01:00
MrMugameandGitHub e61a447d98 Implementing #913 (#1230)
Implemented custom editors
2025-03-06 15:11:17 +01:00
Allie StephanandGitHub 6190a4ff06 Vim Mode and Read Only Fixes (#1240)
* Vim Mode and Read Only Fixes

- remove client.focus call from global keydown handler. This call causes
  issues with vim mode.  For instance typing j with the editor not
  focused would insert a j before properly going to normal mode instead
  of just moving down a line as expected
- add client.reloadPage call to setUiOption syscall. This appears to fix
  read only mode that is broken without the above focus call.  In
  particular when switching between vim and regular mode read only mode
  was previously broken even with the client.focus call
- add client.focus call to CommandPalette onTrigger if no cmd is
  selected. Without the client.focus call above, the editor is no longer
  selected when exiting the command palette with escape - this call
  fixes that
- add watch-all task to deno.json to run all 3 watches in 1 terminal
  window

* Update watch-all

Fix watch-all order so that arguments get passed to watch-server
2025-03-02 15:22:33 +01:00
MrMugameandGitHub a6af94b9e3 Remove editor.setText syscall from client (#1263) 2025-02-25 20:02:59 +01:00
Simon CambierandGitHub 411416fe65 Feature/move lines up down (#1232)
* Move lines up/down
2025-02-23 20:49:52 +01:00
numanandGitHub 2a3c926849 add rebuildEditorState function to the syscalls (#1254) 2025-02-22 11:51:37 +01:00
Zef Hemel 5111b5a380 http.request Lua syscall 2025-02-13 21:12:00 +01:00
Zef Hemel 2e96155a05 Support scrollIntoView in insertAtCursor syscall 2025-02-06 08:37:34 +01:00
Zef HemelandGitHub 61f82869e9 Lua integrated query work (#1205)
* Lua query embeddings
2025-01-12 16:54:04 +01:00
Zef Hemel c2fea2d25b Lua work 2025-01-08 17:09:09 +01:00
Zef Hemel c1a20af981 Lua: widgets 2024-10-13 15:14:22 +02:00
Zef Hemel 6a30284bab Migration to Deno 2.0 2024-10-10 12:52:28 +02:00
Zef Hemel 28f3e454b6 Slightly different way of addressing #1085
saving files after local update with setTexrt
2024-09-24 17:34:46 +02:00
Zef Hemel d9aa6ef1c4 New window command 2024-09-10 14:38:41 +02:00
Zef HemelandGitHub 80f9c14b96 Change how attribute indexing and completion works (#1061)
* Creation of separate aspring-page objects for pages linked to, but not created
* Show "No results" instead of broken markdown table for no query results
* Show schema validation errors
* Deno upgrade
* Adds config support to plugs (see examples)
* Moves all builtin schemas to plug config
* Adds core plug just for builtin schemas
* Changes how attributes are indexed and completed, now attempts to derive a JSON schema for ad hoc attributes
2024-08-24 12:35:09 +02:00
jcgurangoandGitHub eea8326220 Use setText instead of replacing entire editor state (#1056)
* Fix diffAndPrepareChanges
* Use setText instead of replacing editor state
* Isolate editor.setText transaction
2024-08-21 21:36:50 +02:00
Zef HemelandGitHub 6b69449d05 More JSR (#1027)
* Move all syscalls to JSR-style package naming
* Eliminating some prefixes in import maps
2024-08-06 20:11:38 +02:00
Zef Hemel 47f504f2ce deno fmt 2024-08-02 17:14:40 +02:00
Zef HemelandGitHub 64b6d9e2df Space config (#1011)
Space config + a whole bunch of other tweaks
2024-08-02 16:47:36 +02:00
Zef Hemel c111f72e09 Lint error removal 2024-07-30 17:33:33 +02:00
Zef Hemel 64e116f75e lint cleanup 2024-07-30 15:17:34 +02:00
Zef HemelandGitHub 75471fa86b Object decorators (#995)
Implemented objectDecorators to replace pageDecorations in SETTINGS
2024-07-29 21:21:16 +02:00
Marek S. ŁukasiewiczandGitHub a0f3f7ef41 Support linking to and moving to line number in pages (#988)
Support linking to and moving to line number in pages
2024-07-28 20:31:37 +02:00
Marek S. ŁukasiewiczandGitHub 75cd4b1383 Hide pages from auto complete with Page Decorations (#962) 2024-07-19 17:06:40 +02:00
Zef Hemel e4da0b7849 Refined implementation of #560 2024-07-14 11:29:43 +02:00
Zef Hemel d6f0f61d30 Rebrand Template Picker to Meta Picker
As well as associated documentation changes
2024-07-07 12:12:05 +02:00
pihentagyandGitHub 0e3c5587f5 Delete line command (#866) 2024-05-25 23:12:48 +02:00
MaksandGitHub 8a3782e946 improve dependency management (#770)
* use import_map.json instead of per-file import

* remove test_deps.ts in favor of import_map

* remove common/deps.ts in favor of import_map

* use import_map instead of server/deps.ts

* make all plug-api files usable without an import_map

* make all lib files usable without an import_map

* remove web/deps.ts in favor of import_map

* fix plug build

* remove plug-api/deps.ts in favor of lib/deps.ts

* fix server deps bundled in client deps
2024-03-16 15:29:24 +01:00
95ae722a50 Implement space-style (#796)
* Implement space-style
* Add reloading styles to System: Reload

---------

Co-authored-by: Zef Hemel <zef@zef.me>
2024-03-09 12:26:58 +01:00
Zef Hemel 03ee9adc86 Fixes #644 2024-03-02 12:14:27 +01:00
Zef Hemel e919aa82e9 0.7.4 2024-02-29 15:23:05 +01:00
Zef Hemel e046415f05 First iteration of new take on sharing 2024-02-28 12:16:51 +01:00