Commit Graph

498 Commits (6f3d021da71c5d4cec737167f822a07cd311b4dd)

Author SHA1 Message Date
Zef Hemel fce78a22f8 More Lua template work 2025-01-22 20:26:37 +01:00
Zef Hemel 517cfb209a Lua: Reimplement `template` and `config` in Space Lua, distributed with Library/Std 2025-01-20 23:29:06 +01:00
Zef Hemel d72983bde5 Fix read only mode 2025-01-20 23:28:14 +01:00
Zef Hemel 6078452a6c Breaking Lua API changes:
* tpl -> template.new
* define_command -> command.define
* define_event_listener -> event.listen
* tag -> index.tag

Updated in the docs
2025-01-19 14:32:11 +01:00
Zef Hemel 83550c1623 Exposing Objects indexing as syscalls 2025-01-17 10:41:02 +01:00
Zef Hemel bf6a34f82c Lua Integrated Query 2025-01-13 20:25:39 +01:00
Zef Hemel 61f82869e9
Lua integrated query work ()
* Lua query embeddings
2025-01-12 16:54:04 +01:00
Zef Hemel 86f31e3a00 Lua: experimental string interpolation 2025-01-09 11:45:15 +01:00
Zef Hemel c2fea2d25b Lua work 2025-01-08 17:09:09 +01:00
Marek S. Łukasiewicz 1508f6bcbf
Correctly extract hashtag content in links and Page Picker filter (fix ) () 2025-01-07 19:57:46 +01:00
István Szekeres fdd3d1b650
Fix encoding of inline content ()
Inline content with the file containing e.g. a `:` cannot be displayed
as the file name is set as the img src, and the browser treats the part
before the : as the protocol, instead of as a file name.

This change encodes the file name so `:` becomes `%3A`, fixing the
issue.

Fixes .
2025-01-07 19:56:45 +01:00
David Lawrence df9edc5d64
Allow clicking Remember me label to toggle checkbox () 2024-12-31 07:19:17 +01:00
TR Staake 2020e85a6f
Update how tags are rendered to allow for custom styling ()
* Updated how tags are rendered to allow for custom styling via space-styles

* Wrapped the existing span for a tag with an anchor element <a> to
improve ux for screen readers
* Added data-tag-name attribute to tags so that given a tag `#my-tag` it
will have the attribute `data-tag-name="my-tag"` added to the new `<a>`
element wrapper allowing for end users to target tags for styling with a
css selector such as `.sb-hashtag[data-tag-name="my-tag"]{...}`

* Updated Docs
2024-12-14 09:57:46 +01:00
Michael Kolb cfbe8959d0
fix case sensitive property () 2024-11-24 09:21:34 +01:00
Peter Weston 046a0df868
Simple protection against brute force attacks () 2024-11-15 16:51:18 +01:00
Vighnesh Shenoy 3132d9e9f2
Allow tab press to autocomplete () 2024-11-13 21:15:40 +01:00
Ohad Lutzky 916c84e9c1
Fix Enter for vim mode ()
This is a workaround for https://github.com/replit/codemirror-vim/issues/182

Fixes https://github.com/silverbulletmd/silverbullet/pull/1145 (harder)
2024-11-11 13:57:19 +01:00
Ohad Lutzky 4457927416
Do not use standardKeymap in vim mode ()
The standard keymap conflicts with the vim mode, e.g. not allowing arrow
keys to move through the vim commandline for `/` and `:` commands. The
keys described in
https://codemirror.net/docs/ref/#commands.standardKeymap seem to work
just fine without it in vim mode.

Fixes https://github.com/silverbulletmd/silverbullet/issues/976
2024-11-11 12:38:01 +01:00
Mufeed Ali c52e9e71f0
Few dark mode fixes and top bar improvements ()
* fix: Fix progress bar coloring and remove % on indicator

Fixes 

* fix: Improve header, action buttons and progress bar spacing

* fix: Fix caret color on sb-mini-editor
2024-11-07 21:28:14 +01:00
Vighnesh Shenoy 68ead02975
fix: update unused scss variable for directive mark color ()
Signed-off-by: Vighnesh shenoy <vighneshq@gmail.com>
2024-11-07 21:19:37 +01:00
aekaisato 64bbe67912
Create "remember me" functionality for basic auth, which sets an unexpiring jwt and refreshes the cookie during requests ()
* Create "remember me" functionality for basic auth, which sets an unexpiring jwt and refreshes the cookie during requests
2024-10-28 14:09:32 +01:00
Michael Kolb e83f3ebc66
Enabler to make scripts loaded from CDN more secure ()
* added integrity property to load scripts

* fix contribution
2024-10-25 10:38:37 +02:00
Zef Hemel 8acb112e4e Lua stack frame refactor 2024-10-20 15:06:23 +02:00
Marek S. Łukasiewicz f37cf23ba7
Space config for smart quotes (close ) () 2024-10-17 22:34:47 +02:00
Zef Hemel 5765540a3a Widget: alt-click to move cursor into widget 2024-10-16 20:50:38 +02:00
Zef Hemel 2842183568 Lua widgets: support inline for HTML widgets 2024-10-15 16:58:39 +02:00
Zef Hemel 6ec6f0cd6d First Lua docs 2024-10-14 20:59:10 +02:00
Zef Hemel c1a20af981 Lua: widgets 2024-10-13 15:14:22 +02:00
Zef Hemel 4b6cd183a8 Dependency bumps 2024-10-11 16:59:06 +02:00
Zef Hemel 64e398fd90 deno fmt 2024-10-11 15:34:27 +02:00
Zef Hemel 6a30284bab Migration to Deno 2.0 2024-10-10 12:52:28 +02:00
Zef Hemel 3319c7f21c More lua progress: JS Interop 2024-10-09 20:35:11 +02:00
Fernando Serboncini 7731b28203
auto close brackets setting () 2024-10-08 21:06:33 +02:00
Zef Hemel 899c2556cb Lua: more fixes and work on stdlib 2024-10-08 19:53:09 +02:00
Zef Hemel f74bab0aca Lua: inline directives improvements 2024-10-07 19:17:12 +02:00
Zef Hemel 6c71862641 Lua: multi-line string literals 2024-10-07 09:08:36 +02:00
Zef Hemel 41a856636a Lint 2024-10-05 15:38:28 +02:00
Zef Hemel 1299d85e9a First simple Lua directive Live Preview 2024-10-05 15:37:36 +02:00
Zef Hemel 3cf7b72ebb First integration of Lua into the core (via space-lua code blocks) 2024-10-03 17:55:51 +02:00
Zef Hemel 2ef43bd56d Fixes 2024-09-29 13:39:08 +02:00
Zef Hemel 28f3e454b6 Slightly different way of addressing
saving files after local update with setTexrt
2024-09-24 17:34:46 +02:00
Zef Hemel 4bc6ed719c
Update index.html
Removed random s
2024-09-13 08:03:44 +02:00
Zef Hemel d8b4295af4 Fix double page reloads 2024-09-10 14:54:15 +02:00
Zef Hemel d9aa6ef1c4 New window command 2024-09-10 14:38:41 +02:00
Ruibin Xing bddb1b5da9
Export PDF through print. ()
Add print button for markdown panel
2024-08-28 17:32:29 +02:00
Zef Hemel 80f9c14b96
Change how attribute indexing and completion works ()
* 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
Zef Hemel efc5fa6b2c Fix RO mode 2024-08-22 14:24:40 +02:00
jcgurango eea8326220
Use setText instead of replacing entire editor state ()
* Fix diffAndPrepareChanges
* Use setText instead of replacing editor state
* Isolate editor.setText transaction
2024-08-21 21:36:50 +02:00
jcgurango eeb54738f2
Fix diffAndPrepareChanges () 2024-08-21 20:03:30 +02:00
Zef Hemel 0c4838e45c Fix copy code edge case 2024-08-20 10:52:08 +02:00