Zef Hemel
7abb096382
Lua: better handle nil, null and undefined values for Lua directives
2025-02-10 20:30:37 +01:00
Zef Hemel
8e8acbb470
Fix service worker proxy
2025-02-10 15:38:14 +01:00
Zef Hemel
5eb2405823
Fixes #1234
2025-02-09 17:57:59 +01:00
Miró Allard
49b8a0f7dc
Auth: refresh visuals
2025-02-08 20:45:54 +01:00
Miró Allard
9dbf6a760f
Auth: use labels instead of placeholders
2025-02-08 20:45:20 +01:00
Zef Hemel
8f29cef717
Disable rendering widgets on federated pages (security)
2025-02-08 20:38:41 +01:00
Zef Hemel
38dc5bb11c
Reduce log noise
2025-02-08 20:34:34 +01:00
Zef Hemel
772fe82e3a
Fix lint error
2025-02-08 16:52:24 +01:00
Zef Hemel
9317d143b3
Fixes #1231
2025-02-08 16:51:31 +01:00
Zef Hemel
2978f4a8d6
Service worker tweaks in federated URL handling
2025-02-08 11:30:51 +01:00
Zef Hemel
2de149dca1
Merge branch 'main' of github.com:silverbulletmd/silverbullet
2025-02-07 21:07:13 +01:00
Zef Hemel
720154c39a
Return -> Enter
2025-02-07 21:07:09 +01:00
Zef Hemel
8eebb8dd67
Expose index.extractFrontmatter as syscall
2025-02-07 15:39:51 +01:00
Zef Hemel
44a1ce698e
Support plugs to register their own syscalls, using `syscall` (see the index plug for an example)
2025-02-07 15:16:57 +01:00
Zef Hemel
e1c997616c
Support ${lua expression} in templates
2025-02-06 11:58:27 +01:00
Zef Hemel
a169406d37
Lua: huge API breaking change: converted all snake_case APIs to camelCase
2025-02-06 10:04:45 +01:00
Zef Hemel
2e96155a05
Support scrollIntoView in insertAtCursor syscall
2025-02-06 08:37:34 +01:00
Zef Hemel
2ea3d8fe4f
Fixes #1227
2025-02-05 09:01:26 +01:00
Mufeed Ali
c27c83bc44
poc: Add indentMultiplier configuration for customizable indentation in editor ( #1212 )
2025-02-01 14:35:22 +01:00
Zef Hemel
ccf86a648b
Fix RO mode on initial sync
2025-01-30 15:54:34 +01:00
Max Richter
c6624085f0
fix: strike through links in tasks ( #1225 )
2025-01-30 14:54:57 +01:00
Max Richter
0c41927dfe
fix(editor): allow multi selection while in vim mode ( #1224 )
...
This fixes an issue with visual block selection in vim mode
2025-01-30 14:53:53 +01:00
Zef Hemel
548bcfd239
Fix Lua stdlib issues in Sync mode
2025-01-30 14:43:30 +01:00
Zef Hemel
17ec0e41d1
Lua code complete
2025-01-26 08:07:58 +01:00
Zef Hemel
a28c3fd5b8
Context sensitive slashCommands (with onlyContexts and exceptContexts)
2025-01-26 07:35:41 +01:00
Zef Hemel
236b2a7fdd
Lua: tweaks and fixes
2025-01-25 08:29:11 +01:00
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 ( #1205 )
...
* 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 #1196 ) ( #1199 )
2025-01-07 19:57:46 +01:00
István Szekeres
fdd3d1b650
Fix encoding of inline content ( #1186 )
...
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 #1182 .
2025-01-07 19:56:45 +01:00
David Lawrence
df9edc5d64
Allow clicking Remember me label to toggle checkbox ( #1194 )
2024-12-31 07:19:17 +01:00
TR Staake
2020e85a6f
Update how tags are rendered to allow for custom styling ( #1179 )
...
* 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 ( #1167 )
2024-11-24 09:21:34 +01:00
Peter Weston
046a0df868
Simple protection against brute force attacks ( #1152 )
2024-11-15 16:51:18 +01:00
Vighnesh Shenoy
3132d9e9f2
Allow tab press to autocomplete ( #1150 )
2024-11-13 21:15:40 +01:00
Ohad Lutzky
916c84e9c1
Fix Enter for vim mode ( #1146 )
...
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 ( #1145 )
...
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 ( #1137 )
...
* fix: Fix progress bar coloring and remove % on indicator
Fixes #1129
* 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 ( #1142 )
...
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 ( #1132 )
...
* 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 ( #1127 )
...
* 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 #1114 ) ( #1121 )
2024-10-17 22:34:47 +02:00