silverbullet icon indicating copy to clipboard operation
silverbullet copied to clipboard

v2 command button syntax

Open voidarclabs opened this issue 5 months ago • 1 comments

After recently upgrading to v2 to use the excalidraw extension, I noticed that my set up command buttons (for things like making a new page and toggling dark mode for new machines, which was often) no longer worked. they used to use the {[command]} syntax, which was a good shorthand if you just wanted to add one quickly. in v2, this syntax was removed, and there is a lack of documentation on how to achieve the same functionality in the updated api documentation. I eventually figured out that the correct method was by using ${widgets.commandButton("Editor: Toggle Dark Mode")}, which makes sense, due to the revamp's ideals (although it no longer has autofill, which is a seperate issue). this new syntax also has the unfortunate side effect of previous theming no longer applying, which is also a downside.

my request is for this functionality to be either restored, or made available to be bound through the api. After looking, there isn't a way i found to create this kind of functionality. If there is, then please let me know. Love the project, been using it daily for a few years now, just a minor inconvenience for a long time user.

voidarclabs avatar Nov 11 '25 17:11 voidarclabs

same issue, I'm now back on 0.10.4

an upgrade guide will be very helpful

bilogic avatar Nov 12 '25 03:11 bilogic