Commit Graph

470 Commits (924902f6dbb5d89a28f5155d00ac1bcaea60daff)

Author SHA1 Message Date
Zef Hemel bf1eb03129 Backporting a bunch of optimizations from db-only branch 2024-01-13 17:30:15 +01:00
Zef Hemel 509ece91f0 Adding an "enabled" attribute to templates 2024-01-11 14:06:24 +01:00
Zef Hemel 848211120c
Tags redo (#624)
Introduction of `tag` and `itags`
2024-01-11 13:20:50 +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 91027af5fe
Awesome frontmatter (#617)
Live Frontmatter Templates
2024-01-04 20:08:12 +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 c63a93e866 Priority support for commands and overrides 2024-01-02 13:47:43 +01:00
Zef Hemel 11693fbd00 Auto down-adjust sub-headers in TOC 2024-01-02 11:40:59 +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 c1a6253b34 Check fix 2023-12-29 20:06:11 +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 9403fd2cd9 Cleanup 2023-12-27 13:46:45 +01:00
Zef Hemel 48e147d0b2 Move live query and template rendering outside of iframe 2023-12-27 13:38:38 +01:00
Zef Hemel 0a7fc05fef Docs and template sets work 2023-12-22 16:40:38 +01:00
Zef Hemel 3350c7f076 More instant page navigator 2023-12-22 15:55:50 +01:00
Zef Hemel c709f4e4be More ways to define tags in frontmatter 2023-12-22 13:59:16 +01:00
Zef Hemel a49a65c149 Fix page tag indexing 2023-12-22 12:10:09 +01:00
Zef Hemel 581edf92d5 Federation fix 2023-12-22 11:45:32 +01:00
Zef Hemel 82391682f6 Avoid builtin page attributes to be overridden 2023-12-22 11:27:07 +01:00
Zef Hemel 5abdf1c80c Fix federation links 2023-12-21 19:19:09 +01:00
Zef Hemel 70ef6ed9da Work on #587: revamped templates 2023-12-21 18:38:02 +01:00
Zef Hemel c38e6cfc25 Remove Page: New command 2023-12-21 18:21:58 +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 8b860194d7 Outline: enable moving items across boundaries 2023-12-18 16:44:04 +01:00
Zef Hemel 8bafae7d11 Remap outline commands (again) 2023-12-18 12:40:31 +01:00
Zef Hemel 6b0bf3c960 Folding outliner commands #13 2023-12-17 14:26:41 +01:00
Zef Hemel 3ec2a74a53 Fixes #13 by adding new outliner commands 2023-12-16 14:33:08 +01:00
Zef Hemel 9f082c83a9
Major backend refactor (#599)
Backend refactor
2023-12-13 17:52:56 +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 1d5c6f9277 Replace YAML parser 2023-11-29 16:51:28 +01:00
Zef Hemel 48986fc6cb Default limit query results to 1000 2023-11-28 11:18:55 +01:00
Zef Hemel 5a022ae6a0 Fixes cyclic error 2023-11-28 10:06:53 +01:00
Zef Hemel fc6165000c /front-matter -> /frontmatter 2023-11-27 16:43:12 +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 d834646686 Don't index templates as pages 2023-11-27 10:04:03 +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 8d326a668b Slight tweaks 2023-11-25 14:30:31 +01:00
Zef Hemel 1ac494765f Fixes #263: Implement TOC 2023-11-25 13:40:56 +01:00
Zef Hemel cd27739336 Upload robustness 2023-11-25 13:40:27 +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 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 db607f1661 Fixes #394 and upgrade to emoji 15.1, optimizes size 2023-11-21 12:19:47 +01:00
Zef Hemel 063c49effb Preparing for 0.5.6 2023-11-19 12:18:16 +01:00
Zef Hemel 614d3f081a Remove duplicate keyboard shortcut Alt-shift-n 2023-11-16 14:10:09 +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 5b81185afa Fixes 2023-11-15 16:27:17 +01:00
Zef Hemel 6347c2b4d8 Rewrite page references in federated pages 2023-11-15 16:14:15 +01:00
Zef Hemel 663a15fe33 Template sets 2023-11-15 14:56:34 +01:00
Zef Hemel b26b7f4f0a Better formatting for tt tags 2023-11-15 14:51:23 +01:00
Zef Hemel b359d9e065 Don't index templates during full space reindex 2023-11-15 13:41:36 +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 b4ab56c712 Requeue messages on the server as well 2023-11-15 09:31:44 +01:00
Zef Hemel b86d45880a Process handlebars in frontmatter for slash templates too 2023-11-14 09:51:36 +01:00
Zef Hemel 7fec3fe587 Fixes #559 2023-11-13 15:49:21 +01:00
Zef Hemel 1d7dc04f54 Fixes #563 2023-11-13 10:32:40 +01:00
Zef Hemel 95301a41ff Fixes #558 2023-11-12 12:08:09 +01:00
Zef Hemel f3d72ca6f4 iframe widget pooling (experimental) 2023-11-12 11:50:49 +01:00
Zef Hemel 51e3dd72e8 0.5.4 2023-11-11 14:28:46 +01:00
Zef Hemel d58db6aa1a No longer index templates tagged as #template 2023-11-09 09:26:44 +01:00
Zef Hemel ed0c0d9616 Give docked Safari PWA the proper title bar color 2023-11-07 15:21:53 +01:00
Zef Hemel 1afac0274e Custom template slash commands 2023-11-06 09:14:16 +01:00
johnl 0e2a802bbd
Add a {time} template helper, reuse timestamp code from Quick Note as a niceTime (#555)
niceTime helper
2023-11-03 12:04:51 +01:00
Zef Hemel e0b6fbed3e Change anchor reference syntax 2023-11-03 12:01:33 +01:00
Zef Hemel 509683c537 Added 'created' attribute to files and pages 2023-11-03 09:38:04 +01:00
Zef Hemel 3f1aa45b5d Global anchor completion 2023-11-02 16:19:33 +01:00
Zef Hemel 74387cb5b1 Support Live Queries and Live Tempaltes in markdown preview 2023-11-02 16:09:25 +01:00
Zef Hemel 626f1c5cad Template tweak 2023-11-02 12:51:09 +01:00
Zef Hemel 2844c8bc25 Markdown plug APIS 2023-11-02 12:35:30 +01:00
Zef Hemel d8318c4ad7 Code widget refactor 2023-10-31 10:33:38 +01:00
Zef Hemel 4ef857acf4 Support render all in directives too 2023-10-30 14:17:48 +01:00
Zef Hemel 8f4d6e5d23 Fixes #542: render each and render all 2023-10-30 14:15:12 +01:00
Zef Hemel af3e4737ba More tweak to widget rendering 2023-10-29 12:26:57 +01:00
Zef Hemel 7e9a3f7b6a Improvements to #530 styling 2023-10-29 12:10:30 +01:00
Zef Hemel 63b614670c Remove fancy markdown table formatting 2023-10-29 12:09:12 +01:00
Zef Hemel 0b9977a4c4 Added "source" button for template debugging 2023-10-29 10:14:18 +01:00
Zef Hemel b5f4fb603c Merge branch 'main' of github.com:silverbulletmd/silverbullet 2023-10-29 10:02:53 +01:00
Zef Hemel 50caba8522 Factor out markdown widget rendering 2023-10-29 10:02:50 +01:00
Max Richter 0034b4e8a7
feat: style queries a bit nicer :) (#532) 2023-10-16 11:23:46 +02:00
Zef Hemel 99fe8e8c68 Ignore tags in first paragraph of page for paragraph indexing 2023-10-13 17:32:31 +02:00
Zef Hemel cc5c2ee316 staskstate meta data 2023-10-13 17:10:57 +02:00
Zef Hemel 72453bac88 Fixes #521 2023-10-13 17:03:20 +02:00
Zef Hemel 13903a3e30 Indexing fixes 2023-10-13 16:33:37 +02:00
Zef Hemel f7b664aad3 Fixes to paragraph indexing 2023-10-13 15:37:25 +02:00
Ian Shehadeh 50105fd044
Index plug: index paragraph nodes (#528)
* index plug: index paragraph nodes

Includes attributes and tags in the paragraphs.
 Only considers top level paragraphs (right below Document node)

* keep ref and pos consistent with other objects

- most objects just store the starting position in the `pos` field.
- ref is usually `${page}@${pos}` so that it works as a link.

* cleanup and clarify comments

* add paragraph to builtins index
2023-10-12 20:30:47 +02:00
Zef Hemel ae17385dd9 Add ability to convert #use and #import via a command 2023-10-11 10:27:12 +02:00
Zef Hemel dc255c3dda Fix iframes in Safari PWA 2023-10-09 21:02:57 +02:00
Zef Hemel 17ba536801 Linked mentions improvements and other fixes 2023-10-09 20:39:03 +02:00
Zef Hemel ae3e5f375e Fixed using handlebar variables live queries and templates 2023-10-06 14:40:09 +02:00
Zef Hemel d8797aa805 Code complete fixes and changelog 2023-10-04 17:14:24 +02:00
Zef Hemel 852b07c7a7 Widget sizing fixes 2023-10-04 13:47:02 +02:00
Zef Hemel 91387d1e96 Fix template embedding via federation 2023-10-03 18:09:03 +02:00
Zef Hemel 1e8a96ef20 Fix ordering and limit in query 2023-10-03 16:54:03 +02:00
Zef Hemel d0bc1bc722 FTS simplifications 2023-10-03 15:24:07 +02:00
Zef Hemel 0313565610
Complete redo of content indexing and querying (#517)
Complete redo of data store
Introduces live queries and live templates
2023-10-03 14:16:33 +02:00
Ian Shehadeh 9188a772b6
add context to directive errors (#513) 2023-09-05 10:24:50 +02:00
Zef Hemel 2ee20af5c8 Custom task statuses plus various fixes 2023-09-01 16:57:29 +02:00
Zef Hemel 9b5fa44fb6 Perform initial index 2023-08-30 22:36:27 +02:00
Zef Hemel 4277de2184 Full-text search is back 2023-08-30 22:16:14 +02:00
Zef Hemel 79242a524c Full text refactor step 1 2023-08-30 21:12:33 +02:00
Zef Hemel 75da8e7ca9 Further iteration 2023-08-30 17:25:54 +02:00
Zef Hemel cbc00b73a0 Disable full-text index on server for now 2023-08-29 21:57:14 +02:00
Zef Hemel 9a005f26b5 Work on client modes 2023-08-29 21:17:29 +02:00
Zef Hemel 5ff1a8bae3 Refactor all the things 2023-08-28 17:12:15 +02:00
Zef Hemel c3d384330d More event refactoring work 2023-08-27 14:13:18 +02:00
Zef Hemel 9ee9008bf2 Work on #508 (thin client) 2023-08-26 08:31:51 +02:00
Zef Hemel 5a88254cde Refactoring about how proxy fetching happens 2023-08-23 19:08:21 +02:00
Zef Hemel a94724768e Refactoring 2023-08-20 17:51:00 +02:00
Zef Hemel 75bdd6390b Completion for non-federation federation links 2023-08-17 21:58:05 +02:00
Zef Hemel b043ffaee0 Improve wiki link markdown preview 2023-08-17 20:37:55 +02:00
Zef Hemel b273645bae Change all SETTINGS with page references to allow "[[page]]" notation 2023-08-17 20:27:05 +02:00
Zef Hemel bd77f2932c Space sync now scheduled 2023-08-15 20:24:02 +02:00
Zef Hemel 7cce83b240 API refinements 2023-08-15 20:15:27 +02:00
Zef Hemel b47c07da74 Fix minor inconsistencies 2023-08-15 07:56:29 +02:00
Zef Hemel 01ad45f929 Include $ frontmatter attributes in page meta 2023-08-15 07:55:57 +02:00
Zef Hemel 4dbbc31cb9 Work on plug:run 2023-08-11 20:37:13 +02:00
Zef Hemel d4f7833f0d Use MQ for updating directives in entire space 2023-08-10 19:00:28 +02:00
Zef Hemel 97a84e8538 Fixes #115: By introducing MQ workers 2023-08-10 18:32:41 +02:00
Zef Hemel d5173a9939 Fixes #500: New apply page template command 2023-08-09 10:55:35 +02:00
Zef Hemel 2f1f266482 Make attribute extensible 2023-08-08 16:35:46 +02:00
Zef Hemel 4af7afa4aa Instantly sync updated pages when ticking off a task in a directive 2023-08-05 21:09:41 +02:00
Zef Hemel 71c9f81a84 0.3.9 2023-08-04 21:35:58 +02:00
Zef Hemel 351f4172d9 Fixes #485 2023-08-04 21:25:14 +02:00
Zef Hemel 3464af0252 WIP: CLI running of plugs 2023-08-04 18:56:55 +02:00
Zef Hemel b097750fe8 Make 'pos' a number in tasks 2023-08-02 08:57:25 +02:00
Zef Hemel 964058646b Completion for handlebar template variables 2023-08-02 08:35:24 +02:00
Zef Hemel 701a567c95 Attribute indexing and code completion 2023-08-01 21:35:19 +02:00
Zef Hemel bd4c86cd33 Federation listing timeouts 2023-07-31 21:06:15 +02:00
Zef Hemel 6929a7beb5 Federation: rewrite page references in federated content 2023-07-30 19:31:04 +02:00
Zef Hemel b584e2ef7e Robustness and federation sync 2023-07-30 11:30:01 +02:00
Zef Hemel afa160d2c2 Cleanup and federation prep 2023-07-30 08:56:44 +02:00
Zef Hemel fe4887dc78 Federation progress 2023-07-29 23:41:37 +02:00
Zef Hemel 891c8fb995 Fixes #453: batch prefix refactor command 2023-07-28 15:20:56 +02:00
Zef Hemel f24fbbb472 Fixes #433 2023-07-28 13:54:31 +02:00
Zef Hemel 804d87436c Fixes #355 2023-07-27 17:02:53 +02:00
Zef Hemel 7b8d8af2c1 Attributes now have YAML values 2023-07-26 17:12:56 +02:00
Zef Hemel 5481e49393 Debug: Reload UI command 2023-07-26 11:22:10 +02:00
Zef Hemel 6510f06e0e Replacing fuzzy search with fuse.js 2023-07-25 17:33:07 +02:00
Zef Hemel 2b494f263e Work on inline attributes 2023-07-24 19:54:31 +02:00
Zef Hemel 1a33b213be Added`Center Cursor` command 2023-07-24 11:27:46 +02:00
Zef Hemel 2a697332e8 Added `replaceRegexp` helper to templates 2023-07-24 11:09:17 +02:00
Valentin Rieß 5cd0f09726
Add page names to search index (#474) 2023-07-16 22:45:26 +02:00
Zef Hemel c5849f881b Editor refactor: extract state 2023-07-14 13:58:16 +02:00
Zef Hemel b39a9b8e22 Editor refactor: extract system stuff 2023-07-14 13:44:30 +02:00
Zef Hemel 87b0e7e352 Fixes #470 2023-07-14 12:15:10 +02:00
Zef Hemel 430792834e Fixes #462 and adds richer backlink data 2023-07-14 11:52:35 +02:00
Zef Hemel 5b620b2dcc Fixes snippets not working in unsaved page 2023-07-12 11:00:25 +02:00
Zef Hemel 04d6de18e6 Restrict valid page names 2023-07-07 11:44:05 +02:00
Zef Hemel fb75ea1a65
No More Collab. Fixes #449
* Fully removes real-time collaboration
* URL scheme rewrite
2023-07-06 16:47:50 +02:00
Zef Hemel f89cebc424 Disable file listing for federation for now 2023-07-04 17:50:55 +02:00
Zef Hemel 5ff9a5692b More robust handing of empty PLUGS list 2023-07-04 16:52:43 +02:00
Zef Hemel 2f685153db Fixes #439 2023-07-02 11:48:52 +02:00
Zef Hemel 7c825348b2
Big refactors and fixes
* Query regen
* Fix anchor completion
* Dependency fixes
* Changelog update
2023-07-02 11:25:32 +02:00
Zef Hemel eefd8a5245 Add Fold: Toggle Fold command 2023-06-17 09:01:32 +02:00
Zef Hemel 1b922791f3 Implements #51: Folding commands 2023-06-14 19:27:18 +02:00
Zef Hemel 260c91e4b1 Fixes #416: remove frontmatter when including or using a template 2023-06-14 10:20:21 +02:00
JordanPaoletti 80e7d97b80
Add copy page to core plugin (#418) 2023-06-14 09:20:15 +02:00
Zef Hemel 8e0a7cf177
Real-time collaboration within space (#411) 2023-06-13 20:47:05 +02:00
Zef Hemel 97710d1a79 Client reset command 2023-05-29 09:56:47 +02:00
Zef Hemel 50651dc185 Fixes #408: adding about and getting started command 2023-05-26 16:37:32 +02:00
Zef Hemel 1a1b942f92 No longer serialize binary blobs as data URLs 2023-05-26 14:04:32 +02:00
Zef Hemel 5f484bed57
SilverBullet pivot to become an offline-first PWA (#403) 2023-05-23 20:53:53 +02:00
rjgibson b256269897
Fix date calculation in `Task: Postpone` command (#406)
* Fix date calculation in `Task: Postpone` command

Create new postponed date as a "naive" date to prevent it from being
converted to UTC.

* Convert types to satisfy deno linter

---------

Co-authored-by: Bob Gibson <rjg@rjgibson.org>
2023-05-22 11:54:25 +02:00
Siddhant Sanyam 47acb503cb
Add support for multiple order by (#387) 2023-04-19 11:01:27 +02:00
Zef Hemel a28966b410 Dep update, build fixes 2023-04-19 10:46:20 +02:00
Zef Hemel ea293be159 Include tags in frontmatter in autocomplete 2023-03-13 09:59:58 +01:00
Zef Hemel a333803876 Support multiple data blocks in single page #43 2023-03-06 14:43:50 +01:00
Zef Hemel 50fdc2fdbc Fixes #359 2023-03-06 14:17:03 +01:00
Zef Hemel ece4177e11 Fixes #344 2023-02-28 11:13:18 +01:00
Zef Hemel df38a43a1e Fixes #359 2023-02-27 15:51:54 +01:00
Zef Hemel 3e112689a9 Fixes #343 2023-02-27 15:20:16 +01:00
Zef Hemel c0128b1090 Fixes #365 2023-02-23 16:09:39 +01:00
Zef Hemel c1528eff08 Fixes #360 2023-02-23 15:33:51 +01:00
Zef Hemel df958749d1 Add character count to stats 2023-02-11 14:19:02 +01:00
Zef Hemel 9c04db6a9c Sync tweaks 2023-01-26 15:54:28 +01:00
Zef Hemel 4c39d0b964 Show a clear error message when querying a non-existant query source 2023-01-26 15:52:37 +01:00
Zef Hemel cf9ca06dff Fix tag completion 2023-01-26 12:02:41 +01:00
Zef Hemel c56caac533 Sync tweaks 2023-01-25 09:46:56 +01:00
Zef Hemel e7728c2d2a Fixes #319 2023-01-23 18:52:17 +01:00
Zef Hemel 53bf098579 deno fmt 2023-01-22 18:53:14 +01:00
Zef Hemel a7a5ed8f0a Remove hashtag from index tag name, related to #322 2023-01-21 14:06:37 +01:00
Zef Hemel a4c103e127 Fixes #258 2023-01-21 13:37:55 +01:00
Zef Hemel a3fb2ffe92 Fix sync with silverbullet.md 2023-01-20 17:03:55 +01:00
Zef Hemel 2577a2db32
Continuous sync (#320)
* Continuous sync

* Mobile dep upgrade
2023-01-20 16:08:01 +01:00
Zef Hemel a53ebbd2e1 Fix onboarding and cloud pages appearing in queries 2023-01-17 09:34:49 +01:00
Zef Hemel d23846cdbf Sync: no conflict when only directive bodies differ 2023-01-16 18:55:35 +01:00
Zef Hemel e4a4467547 Sync: Local wipe and sync command and better info 2023-01-16 18:34:15 +01:00
Zef Hemel c046d4a221 Don't translate cloud links to cloud links 2023-01-16 16:59:45 +01:00
Zef Hemel 882f157cf1 Transition from sendEvent to syscall event.dispatch 2023-01-16 11:06:07 +01:00
Zef Hemel ef7830662e Support syscalls in sandboxed iframes 2023-01-16 10:40:16 +01:00
Zef Hemel 9c0525e683 Ghost plug doc update 2023-01-15 13:48:43 +01:00