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

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

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

below code (that I thought was trouble-making)

-- 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.

I forget to check console (first)…



along the way, found something interesting:

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

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

1 Like