# V2.2.1 \[Bug\] 1 space-lua block permits only 1 command.define, multiple will fail

**URL:** https://community.silverbullet.md/t/v2-2-1-bug-1-space-lua-block-permits-only-1-command-define-multiple-will-fail/3501
**Category:** Troubleshooting
**Created:** [November 6, 2025, 6:20am UTC](https://community.silverbullet.md/t/v2-2-1-bug-1-space-lua-block-permits-only-1-command-define-multiple-will-fail/3501 "2025-11-06T06:20:22Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![ChenZhu-Xie](https://community.silverbullet.md/user_avatar/community.silverbullet.md/chenzhu-xie/32/1476_2.png) [@ChenZhu-Xie](https://community.silverbullet.md/u/ChenZhu-Xie)
#### Post date: [November 6, 2025, 9:00am UTC](https://community.silverbullet.md/t/v2-2-1-bug-1-space-lua-block-permits-only-1-command-define-multiple-will-fail/3501/6 "2025-11-06T09:00:17Z")

</div>

emm… the (root) reason should be (shifted to) `priority = 0` in `command.define` and `.update` I suppose -\_-||

 ![image](https://community.silverbullet.md/uploads/default/original/2X/a/a057662d287e928105f4c27e158cadc2e15a1933.png)

after I update all `priority = 0` to `priority = 1,`

below code (that I thought was trouble-making)

```auto
-- priority: -1
event.listen {
  name = 'hooks:renderTopWidgets',
  run = function(e)
    if not editor.getUiOption("darkMode") then
      editor.setUiOption("darkMode", true)
    end
  end
}

```

now works with ctrl+2~6 in [[space-lua] Toggle / Rotate Header Level h1-h6-On/Off - #4 by Mr.Red](https://community.silverbullet.md/t/space-lua-toggle-rotate-header-level-h1-h6-on-off/3320/4).

I forget to check console (first)…

 ![image](https://community.silverbullet.md/uploads/default/original/2X/8/89f80f207ea291901384c5f9e9739b0051072d3a.jpeg)

* * *

* * *

along the way, found something interesting:

1. a virtual page has no bottom widget, but SB is trying to render that

 ![image](https://community.silverbullet.md/uploads/default/original/2X/7/7a5fb28dda3bcfe7c4be4be9f352ecdbfbf94ce2.png)

1. SB is trying to create a real page with the same name of the virtual page

 ![image](https://community.silverbullet.md/uploads/default/original/2X/e/ee4e559448bd853d96c0299ed07bfc52b5c49048.png)

---

_[View the full topic](https://community.silverbullet.md/t/v2-2-1-bug-1-space-lua-block-permits-only-1-command-define-multiple-will-fail/3501)._
