Commit Graph

482 Commits (b532b9e3f16320cfd4c5cd255fb87092ef3ebf84)

Author SHA1 Message Date
pihentagy 0e3c5587f5
Delete line command (#866) 2024-05-25 23:12:48 +02:00
Florent 827b08c21f
Support size for images (#833)
* Support size for images

* Also support dimensions while rendering markdown

* Parser - ImageWithSize: Comment regexp with examples
2024-05-19 11:05:48 +02:00
Zef Hemel 75d3277885 Fixes #864 2024-05-14 13:24:33 +02:00
s1gnate-sync 4390f6ebc2
Window controls overlay (#837)
* Update main.scss

Make page header a title bar

* Update manifest.json

Allow custom titlebar

* Resize page header so it won't overlap titlebar controls
2024-05-14 11:49:10 +02:00
MrMugame f683a4570a
Fixed panel border (#863) 2024-05-14 09:22:52 +02:00
Dobli 2472d34f29
Add support for Material Design Icons (#848)
* Add support for Material Design Icons

* Re-export selected material icons to reduce bundle size
2024-04-20 16:24:34 +02:00
Daniel Michel cb6ee137f2
Improve modals (#840)
* Adjust picker input to take up all remaining space

* Improve modals and buttons

* Remove confusing focus of scrollable result list in Firefox

* Adjust css for dark themes, add background for text field in prompt

Seperate accent color for text to increase contrast in dark theme
Set css color-scheme to dark for dark theme

* Fix buggy when entering very long text in picker

* Prevent key events from propagating outside of modals

* Always show focus on button

* Add the keydown event listener directly to the mini editor

* Do not refocus the mini editor when it loses focus and refactoring of the AlwaysShownModal.

* Fix reference to button and mini editor focus in chrome

* Fix selected option index capping in filter when using page down
2024-04-20 16:22:02 +02:00
Zef Hemel 27ef256674 Fixes #853 with dependency version bump 2024-04-20 16:20:13 +02:00
Thomas Michelat c75598cc80
use configurable file size for drag and drop too (#846) 2024-04-11 18:06:57 +02:00
Zef Hemel 82e431d358 Revert font part of #831 back to iA Mono 2024-04-09 09:28:12 +02:00
onespaceman b292b5f336
fix completion colors (#843) 2024-04-08 21:06:39 +02:00
Daniel Michel 3806513ba0
Allow middle click to open link (#841) 2024-04-07 15:10:58 +02:00
onespaceman f193a73e39
New font and css fixes (#831) 2024-04-03 22:09:47 +02:00
Maks 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
Zef Hemel ca5b6803eb More reload fix attempts 2024-03-14 13:02:34 +01:00
Zef Hemel 221e9e859c Potential fox to file reload race condition 2024-03-12 16:33:38 +01:00
Zef Hemel 34af1b1bb6 Added tracing for reloads 2024-03-12 14:24:46 +01:00
Zef Hemel 0959a37a83 Optimize sync slightly 2024-03-11 20:56:29 +01:00
onespaceman 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
onespaceman 2705fff52e
Fix admonitions without style (#797) 2024-03-07 18:52:04 +01:00
Zef Hemel 4d2006d7e4 Fixes #785 2024-03-04 19:50:59 +01:00
onespaceman 6230c8ab83
Custom admonitions (#786) 2024-03-04 18:35:02 +01:00
Zef Hemel e6faaca67c Remove console.logs 2024-03-02 15:23:25 +01:00
Zef Hemel 398e452308 Attempt to address #479 2024-03-02 15:21:36 +01:00
Zef Hemel 89e2e7a37c Fixes #621 with improved snippets for page links 2024-03-02 14:48:02 +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 ec858b8b8f Fix notification positioning 2024-02-28 16:22:28 +01:00
Zef Hemel e046415f05 First iteration of new take on sharing 2024-02-28 12:16:51 +01:00
Zef Hemel f3a252b5dc Reindex tweaks 2024-02-28 10:55:25 +01:00
onespaceman 35128cc591
Change top bar to flexbox (#762) 2024-02-27 22:43:39 +01:00
Zef Hemel de2d1089d4
New space script APIs (#761)
New space script APIs: registerEventListener and registerAttributeExtractor
2024-02-27 20:05:12 +01:00
Zef Hemel a98299e8b3
Revert "Change top bar to flexbox (#753)" (#760)
This reverts commit e3a2dbdd11.
2024-02-27 19:32:40 +01:00
onespaceman e3a2dbdd11
Change top bar to flexbox (#753) 2024-02-26 18:10:31 +01:00
Matthew Pietz e290245621
Relax hashtag pattern matching (Support Emoji) (#752)
Adjust the RegExp for matching tags in order to better support compatibility
with other PKM systems. Though not the exact matcher used in Obsidian (since
its source is closed), this matcher is modeled mostly after it and allows most
non-whitespace characters, including Emoji.

I use a task line like `- [ ] Gift Idea #🎁 #Person-Name` to denote gift ideas
for friends and family. This patch allows SilverBullet to recognize the emoji.
2024-02-26 18:03:55 +01:00
Zef Hemel 5904326f0c Minor bug fix in service worker 2024-02-25 13:46:02 +01:00
Marek S. Łukasiewicz c53a6cec76
Exclude copy code button from more code widgets (#748) 2024-02-24 15:52:22 +01:00
Zef Hemel 6f897f6f6e Make slash command API compatible with regular completions 2024-02-24 09:26:00 +01:00
Zef Hemel 7e82a1b278 cliboard -> clipboard 2024-02-23 13:54:51 +01:00
Zef Hemel 60a42048ba Hopefully addresses #742 2024-02-23 13:42:02 +01:00
Zef Hemel cfd1e53f62 Fixes #734 2024-02-23 13:26:10 +01:00
Joe Krill aaad3dbf0a
Add copy to clipboard button to code blocks (#735) 2024-02-23 10:12:48 +01:00
Marek S. Łukasiewicz afd2ce71a5
Recognize info string, settings and css after any legal fenced code start (#675, #693) (#694) 2024-02-23 09:03:14 +01:00
Joe Krill 29e55ca6b1
Store extracted customStyles in uiSettings (#731) 2024-02-22 22:28:47 +00:00
Joe Krill d25eee79f8
Correctly skip adding default shortcuts for overriden commands (#739) 2024-02-22 22:26:31 +00:00
Joe Krill f49c5a0431
Include `context` when opening the command palette via syscall (#737) 2024-02-22 22:25:02 +00:00
Ashish Dhama a9b31bde30
GH-683: Fix template dark mode (#698) 2024-02-13 18:32:55 +01:00
Zef Hemel bb1e49a11e More moving stuff around 2024-02-08 21:12:23 +01:00
Zef Hemel 60d3199d64
Giant code reorganization (#690)
Code restructure
2024-02-08 21:00:45 +01:00
Zef Hemel 05efbc8741 Refactoring and adding ability to create custom commands from space functions 2024-02-07 14:50:01 +01:00
Zef Hemel b3dc303624 Top bar sizing fixes 2024-02-07 09:51:55 +01:00
Marek S. Łukasiewicz 257c7a3e4a
Improve mobile navigation through history (#686)
* History back and forward commands
* Conditionally display actionButtons on mobile devices
2024-02-07 09:33:47 +01:00
Zef Hemel 0ddbd877f9
Space script MVP (#685)
* Space Script MVP
* New `command` and `syscall` query sources
2024-02-06 16:51:04 +01:00
Marek S. Łukasiewicz dbce3a2ad1
Plug: Emoji aliases (#246) (#679)
Plug: Emoji aliases (#246)
2024-02-06 14:07:38 +01:00
Zef Hemel 341c07049f
Custom template parser (#672)
New template engine 🤯
2024-02-02 19:19:07 +01:00
Zef Hemel 58ea651668 opengraph attributes 2024-01-28 15:51:02 +01:00
Zef Hemel 7612f1af73 Server-side render content 2024-01-28 15:08:35 +01:00
Zef Hemel 5bc7193fb0 Fixes #161 by implementing read-only mode, first iteration 2024-01-26 17:05:10 +01:00
Zef Hemel 43adb13fb2 Fixes #330 2024-01-26 11:10:35 +01:00
Zef Hemel 63083d1e05 Support kebab-case names for feather icons 2024-01-26 09:17:01 +01:00
Zef Hemel 40dc50f782 Fixes #495 2024-01-25 19:46:08 +01:00
Zef Hemel 8112616cb2 Clean some console.logs 2024-01-25 16:48:17 +01:00
Zef Hemel 604bea3ee0 Fixes #650 #629 2024-01-25 14:51:40 +01:00
Zef Hemel 8404256ccb Fixes #643 2024-01-25 11:42:36 +01:00
Zef Hemel 232a0d8df8 Fixes #98 2024-01-25 10:17:42 +01:00
Zef Hemel 2893fe11a3 Fix Shift-Enter regressions 2024-01-24 14:56:02 +01:00
Zef Hemel 308b1232bc Fixes #642 2024-01-24 14:52:07 +01:00
Zef Hemel 8a89d69c22 Fixes #640 2024-01-24 14:44:39 +01:00
Zef Hemel a9ce68860e Fixes #638 2024-01-24 14:03:14 +01:00
Zef Hemel ad4a795e7f Remove "syntax" support from plugs 2024-01-24 13:34:12 +01:00
Zef Hemel aaacec6d61
Navigator refactor (#648)
Navigation refactor
2024-01-24 11:58:33 +01:00
Zef Hemel ddd730d9b3 Remove some page templates, remove template picker button, update changelog 2024-01-22 09:53:39 +01:00
Zef Hemel 4133cabd52 Fixing netlify 2024-01-20 22:53:51 +01:00
Zef Hemel 9734c0f14c Fix sync mode offline crash 2024-01-20 20:57:05 +01:00
Zef Hemel f30b1d3418
Templates 2.0 (#636)
Templates 2.0 and a whole bunch of other refactoring
2024-01-20 19:16:07 +01:00
Zef Hemel a2dbf7b3db
PlugOS refactor and other tweaks (#631)
* Prep for in-process plug loading (e.g. for CF workers, Deno Deploy)
* Prototype of fixed in-process loading plugs
* Fix: buttons not to scroll with content
* Better positioning of modal especially on mobile
* Move query caching outside query
* Fix annoying mouse behavior when filter box appears
* Page navigator search tweaks
2024-01-15 16:43:12 +01:00
Zef Hemel a9eb252658 Plug sandbox rework 2024-01-14 13:38:39 +01:00
Zef Hemel 0296679827 Fixes #627 2024-01-13 18:42:40 +01:00
Zef Hemel 291280b709 Switch from Oak to Hono 2024-01-13 18:07:02 +01:00
Zef Hemel bf1eb03129 Backporting a bunch of optimizations from db-only branch 2024-01-13 17:30:15 +01:00
Zef Hemel 848211120c
Tags redo (#624)
Introduction of `tag` and `itags`
2024-01-11 13:20:50 +01:00
Zef Hemel 9a07c4c90a Fix hashtag highlighting in templates 2024-01-09 13:34:21 +01:00
Zef Hemel 3ae7ed7e3d Maximum heights for top widgets 2024-01-09 09:57:07 +01:00
Zef Hemel e07001dae9 Fix command links in widgets and multi widget suport 2024-01-09 09:37:06 +01:00
Zef Hemel 848e11a773 Rebuilt frontmatter templates as template widgets 2024-01-08 17:08:35 +01:00
Zef Hemel 8230330ed0 Undo frontmatter templates 2024-01-08 09:21:19 +01:00
Zef Hemel 91027af5fe
Awesome frontmatter (#617)
Live Frontmatter Templates
2024-01-04 20:08:12 +01:00
Zef Hemel 9040993232 Making code jumping slightly less bad when selecting (#592) 2024-01-02 15:26:36 +01:00
Zef Hemel 8a2e081672
Fixes #529 by removing directives (#613)
* Fixes #529 by removing directives
* Load builtin tags on space reindex
2024-01-02 14:47:02 +01:00
Zef Hemel 29146b1a71 Styling tweaks 2024-01-02 13:47:50 +01:00
Zef Hemel c63a93e866 Priority support for commands and overrides 2024-01-02 13:47:43 +01:00
Zef Hemel fd6f7c28c9 Reduce logging 2024-01-02 12:48:18 +01:00
Zef Hemel 6b6ab30c92 Upgrade @codemirror/view and height fixes 2024-01-02 12:43:10 +01:00
Zef Hemel ba90397c02 Scroll to top of home page 2024-01-02 11:36:17 +01:00
Zef Hemel 8448a578fc Optimizing caches 2024-01-02 11:32:57 +01:00
Zef Hemel 8ab5edeccc Tweaks in rendering and buttons 2024-01-02 11:01:34 +01:00
Zef Hemel 16b8d4ef12 Slight performance tweaks 2023-12-29 20:03:54 +01:00
Zef Hemel bc78fae5ec Add buttons back to Live Templates 2023-12-29 18:59:42 +01:00
Zef Hemel d43dbcacec Fixed a lot of bugs with new widget rendering 2023-12-28 16:14:30 +01:00
Zef Hemel 4d66f23391 Top-bottom panel refactor, more instant rendering 2023-12-27 18:05:47 +01:00
Zef Hemel 48e147d0b2 Move live query and template rendering outside of iframe 2023-12-27 13:38:38 +01:00
Zef Hemel a205178ff0 Renamed "keyboardShortcuts" to "shortcuts" 2023-12-27 08:14:57 +01:00
Zef Hemel 3350c7f076 More instant page navigator 2023-12-22 15:55:50 +01:00
Zef Hemel 8a181145ad Update keyboard shortcuts in command pallette #605 2023-12-22 14:33:50 +01:00
Zef Hemel df83c62dec Fixes #605 2023-12-22 13:22:25 +01:00
Zef Hemel 82391682f6 Avoid builtin page attributes to be overridden 2023-12-22 11:27:07 +01:00
Zef Hemel 8577fb95db Filter pages on tags 2023-12-21 19:49:25 +01:00
Zef Hemel 90659c9c7e Make frontmatter foldable 2023-12-21 19:04:54 +01:00
Zef Hemel 70ef6ed9da Work on #587: revamped templates 2023-12-21 18:38:02 +01:00
Zef Hemel cd19d455a4 More #363 work, relative paths for attachments when uploading 2023-12-19 18:59:12 +01:00
Zef Hemel 30436d97ea More fixes related to #363 2023-12-19 17:55:11 +01:00
Zef Hemel a5c7405a35 Fixes #363 2023-12-19 17:20:47 +01:00
Zef Hemel 92ecbff4cd Fix some styling issues 2023-12-19 16:18:18 +01:00
Zef Hemel 5a7a35c759
E2E encryption (prototype) (#601)
Prototype E2E encryption
2023-12-17 11:46:18 +01:00
Zef Hemel 9f082c83a9
Major backend refactor (#599)
Backend refactor
2023-12-13 17:52:56 +01:00
Zef Hemel 60d7cc704a Remove debug 2023-12-12 14:16:57 +01:00
Zef Hemel e0bb1dde79 Fix plugOverrides being broken 2023-12-12 14:15:46 +01:00
Zef Hemel e0fe7897b7 CSRF and authentication changes 2023-12-11 12:11:56 +01:00
Zef Hemel 30ba3fcca7
Refactoring work to support multi-tenancy and multiple storage, database backends (#598)
* Backend infrastructure
* New backend configuration work
* Factor out KV prefixing
* Don't put assets in the manifest cache
* Removed fancy authentication stuff
* Documentation updates
2023-12-10 13:23:42 +01:00
Zef Hemel 8527528af4
Lazy plugs (#596)
* Manifest caching and lazy loading of plug workers
* Fixes #546 Plug unloading after time out
2023-12-06 18:44:48 +01:00
Zef Hemel 62e98b1fd8 Fixes #585 2023-11-29 16:50:53 +01:00
Zef Hemel 259ad5b488 Fixes #576 supporting markdown in headers and refactoring some stuff 2023-11-27 16:29:19 +01:00
Zef Hemel 1335820abd Fixes #583 by making YAML keys slightly darker 2023-11-27 16:04:14 +01:00
prcrst e6f77b12af
Initial implementation of command link arguments (#573)
Initial implementation of command link arguments

---------

Co-authored-by: prcrst <p-github@prcr.st>
Co-authored-by: Zef Hemel <zef@zef.me>
2023-11-25 18:57:00 +01:00
Zef Hemel bf5d17aa7a Remove debug statements 2023-11-25 14:31:39 +01:00
Zef Hemel 8d326a668b Slight tweaks 2023-11-25 14:30:31 +01:00
Zef Hemel aed8bef208 Clicking top bar scrolls to top of page 2023-11-25 14:04:32 +01:00
Zef Hemel 1ac494765f Fixes #263: Implement TOC 2023-11-25 13:40:56 +01:00
prcrst ae9c8dcb4c
Upload file command with copy/paste logic (#571)
Upload: File command

Co-authored-by: prcrst <p-github@prcr.st>
Co-authored-by: Zef Hemel <zef@zef.me>
2023-11-23 12:09:48 +01:00
Zef Hemel 621c21d26c Minor cleanup 2023-11-22 15:51:44 +01:00
prcrst ae1561ac90
Implement editor.uploadFile syscall (#570)
* Implement editor.attachFile syscall

* Refactor attachFile to uploadFile

returns a promise with an UploadFile now

* Fix style

* Reject promise with errors

* Another code style fix

---------

Co-authored-by: prcrst <p-github@prcr.st>
2023-11-22 15:33:25 +01:00
Zef Hemel 9b89330ec9 More linting 2023-11-21 16:56:21 +01:00
Zef Hemel 2aed9e5685 Fixes #539 linter support, now checking YAML formats 2023-11-21 16:24:20 +01:00
Zef Hemel aa5bff548d template fix 2023-11-21 13:26:48 +01:00
Zef Hemel a984ab1f82 Disable 404 caching 2023-11-17 13:54:48 +01:00
Zef Hemel 6336190c20 Federation URL handling 2023-11-16 13:55:02 +01:00
Zef Hemel 1af5e022a0 Milde optimizations 2023-11-16 09:59:37 +01:00
Zef Hemel 694448a99b Support for env-specific plug space primitives 2023-11-15 16:13:44 +01:00
Zef Hemel 663a15fe33 Template sets 2023-11-15 14:56:34 +01:00
Zef Hemel 35e2afc18b Fixes #566 2023-11-15 10:27:37 +01:00
Zef Hemel 8a7c50599d Fixes #522 2023-11-15 10:08:21 +01:00
Zef Hemel 4acfd96011 Website content updates 2023-11-15 09:31:52 +01:00
Zef Hemel b4ab56c712 Requeue messages on the server as well 2023-11-15 09:31:44 +01:00
Zef Hemel f3d72ca6f4 iframe widget pooling (experimental) 2023-11-12 11:50:49 +01:00
Zef Hemel 1b242dea55 Disable curly quotes in code blocks 2023-11-12 10:44:45 +01:00
Zef Hemel da88c9c6ed Fix page navigator ordering regressions 2023-11-12 10:43:08 +01:00
Zef Hemel bedc85e7a9 Adding some page reload debugging 2023-11-12 10:33:27 +01:00
Zef Hemel 69ef37a170 Added ngrok deployment option 2023-11-10 10:57:57 +01:00
Zef Hemel d58db6aa1a No longer index templates tagged as #template 2023-11-09 09:26:44 +01:00
Zef Hemel 366b2ed395 Add newly created file to file list cache 2023-11-08 12:46:59 +01:00