After updating to 2.1.9, my settings appear to be ignored and defaults to the silverbullet fresh install settings. My index page got replaced with the default index page, and my custom action buttons at the top are gone. The Libraries:Update command does not appear as a button so it’s not clickable nor searchable in the run command action button.
Reverting back to 0.10.4 fixes the issue. I see from the release notes there was a significant rewrite in Go, but I don’t see anything about system settings changing or how they’re configured. In my original landing page, I had embedded queries and other button links - none of them are rendered into the page so they appear to be broken as well. Did links/buttons/embedded queries syntax change?
Any assistance is much appreciated.
Here’s my settings:
indexPage: "[[landing]]"
libraries:
- import: "[[!silverbullet.md/Library/Core/*]]"
# Action buttons
actionButtons:
- icon: home # Use any icon from https://feathericons.com
command: "{[Navigate: Home]}"
description: "Go to the index page"
- icon: message-circle
description: "Community"
command: '{[Navigate: To URL]("https://community.silverbullet.md")}'
- icon: book
command: "{[Navigate: Page Picker]}"
description: Open page
- icon: terminal
command: "{[Open Command Palette]}"
description: Run command
- icon: moon
command: "{[Editor: Toggle Dark Mode]}"
description: "Go to the index page"
Here’s my query on my landing page:
page
select name
order by lastModified desc
where name != "landing" and name !=~ "Library/Core/*"
limit 15
render [[Library/Core/Query/Full Page]]
I’m running this with podman in a quadlet:
[Unit]
Description=Personal Knowledge Base System
[Container]
Image=docker.io/zefhemel/silverbullet
ContainerName=sbullet
AutoUpdate=registry
Network=app_net
PublishPort=3003:3000
Volume=podman_myspace:/space:Z
[Service]
Restart=always
[Install]
WantedBy=multi-user.target default.target
The jump from 0.10 to 2.0 is a bit more significant than just a Go backend rewrite. Have a look at this page: Migrate from v1 this gives some pointers. If you were a heavy user of templates and queries, there is a fair amount of changes you’ll have to do. You will have to decide for yourself if it’s worth the jump
I feel you, and can fully understand.
I went through all what you are going through 3 weeks ago.
But after these last weeks, I can say, that going from v0.10.x to v2.1.x was the best(not the easiest) upgrade silverbullet went through.
There are a couple of breaking changes, but it’s wort the hassle to reconfigure.
what I did and i could also recommend you too:
to crank up a a whole new empty space on v2.1.9
leave the v0.10.4 running in parallel
start with the configuration/settings/style pages
when you migrated all your settings, you can continue migrating individual pages with queries/templates etc.
the simple/markdown notes only, you can either move them at last or as first, it doesn’t really matter.
Further hints:
why your index page got broken? because in v2.1.x the index page is only configured through the SB_INDEX_PAGE=your_index_page environmental variable. Add it to your podman config.
query templates are not separate pages anymore, but lua-script functions. check v2 documentations on how to define/use them: API/template
Library/Core → moved to → Library/Std (and it’s 100% space-lua in v2.0)
check out syntaxes and templates under https://your_silverbullet_instance/Library/Std for your core integrations.
your action button config must also be reconfigured, this is a short example how it should look like
actionButtons = {
{
icon = "home",
description = "Go to the index page",
run = function() editor.invokeCommand("Navigate: Home") end
},
{
icon = "message-circle",
description = "Community",
run = function() editor.openUrl("https://community.silverbullet.md") end
}
-- add your other action buttons here
}
If you have any questions or need further help. just leave a comment here, i’m sure me or fellow community members can help you solve your migration problems.
Hey thanks so much for your reply. I never got that deep into live queries. I only have 1 on my index page so the transition isn’t that bad for me. I was able to get that working and also a couple of custom slash commands.
One thing I can’t figure out is quick notes. There doesn’t appear to be a default quick notes command any more. Shift+Alt+N still works. Inbox at Library/Core/Inbox is broken. I’m guessing I can set up my own but wondering if you already have the space lua code for this? I used to have a quick notes button on my index page that would open a quick note as well.
EDIT: After some tinkering, I got my inbox to show my list of quick notes
${template.each(query[[
from index.tag "page"
order by lastModified desc
where name.startsWith("Inbox")
]], templates.fullPageItem)}
And as for the Library/Core/ folder, if you haven’t modified anything in it for v1, you can safely delete it, it’s no more needed in v2.x. Every core functionality from Library/Core/ moved either into Library/Std or directly the main codebase.