[HELP needed] CONFIG for mobile

Hey,

so probably this is an easy fix for someone with knowledge about lua, but I am bit confused.
Problem: My Mobile bottom bar stopped working after updating (didnt update for a longer time) and a lot of the CONFIG Items changed a bit, most I could “repair”, but not this.

config.set {
  plugs = {
    -- Add your plugs here (https://silverbullet.md/Plugs)
    -- Then run the `Plugs: Update` command to update them
    "github:joekrill/silverbullet-treeview/treeview.plug.js",
    "github:logeshg5/silverbullet-excalidraw/excalidraw.plug.js",
    "github:malys/silverbullet-mindmap/mindmap.plug.js",
  },
  command.update {
    name = "Open Command Palette",
    key = "F1", -- for Linux/Windows
    mac = "F1",
    priotrity = 100
  },
  command.update {
    name = "Navigate: Page Picker",
    key = "F2", -- for Linux/Windows
    mac = "F2",
    priotrity = 100
  },
  slashCommand.define {
    name = "right",
    run = function()
      editor.invokeCommand("Outline: Move Right")
    end
  },
  slashCommand.define {
    name = "left",
    run = function()
      editor.invokeCommand("Outline: Move Left")
    end
  },
  mobileMenuStyle = "bottom-bar",
  actionButton.define {
    icon = "chevrons-left",
    mobile = true,
    priority = -1,
    run = function()
      editor.invokeCommand("Outline: Move Left")
    end  
  },
  actionButton.define {
    icon = "chevrons-right",
    mobile = true,
    priority = -2,
    run = function()
      editor.invokeCommand("Outline: Move Right")
    end
  },
  actionButton.define {
    icon = "bold",
    mobile = true,
    priority = -3,
    run = function()
      editor.invokeCommand("Text: Bold")
    end
  },
  actionButton.define {
    icon = "italic",
    mobile = true,
    priority = -4,
    run = function()
      editor.invokeCommand("Text: Italic")
    end
  },
  actionButton.define {
    icon = "minus",
    mobile = true,
    priority = -5,
    run = function()
      editor.invokeCommand("Text: Strikethrough")
    end
  },
}

Where is my mistake?
And I was a programmer in the past, but I am still confused about the config stuff, is there somewhere I can teach myself how this work?

Thanks in advance Bauerbyter

Funny, you’re already the second to make this mistake. I didn’t anticipate this could happen.

The issue is you nested a bunch of command definition and other calls inside the config.set call where they don’t belong.

Try this instead:

```space-lua
config.set {
  plugs = {
    -- Add your plugs here (https://silverbullet.md/Plugs)
    -- Then run the `Plugs: Update` command to update them
    "github:joekrill/silverbullet-treeview/treeview.plug.js",
    "github:logeshg5/silverbullet-excalidraw/excalidraw.plug.js",
    "github:malys/silverbullet-mindmap/mindmap.plug.js",
  },
  mobileMenuStyle = "bottom-bar",
}

command.update {
  name = "Open Command Palette",
  key = "F1", -- for Linux/Windows
  mac = "F1",
  priotrity = 100
}

command.update {
  name = "Navigate: Page Picker",
  key = "F2", -- for Linux/Windows
  mac = "F2",
  priotrity = 100
}

slashCommand.define {
  name = "right",
  run = function()
    editor.invokeCommand("Outline: Move Right")
  end
}

slashCommand.define {
  name = "left",
  run = function()
    editor.invokeCommand("Outline: Move Left")
  end
}

actionButton.define {
  icon = "chevrons-left",
  mobile = true,
  priority = -1,
  run = function()
    editor.invokeCommand("Outline: Move Left")
  end  
}

actionButton.define {
  icon = "chevrons-right",
  mobile = true,
  priority = -2,
  run = function()
    editor.invokeCommand("Outline: Move Right")
  end
}

actionButton.define {
  icon = "bold",
  mobile = true,
  priority = -3,
  run = function()
    editor.invokeCommand("Text: Bold")
  end
}

actionButton.define {
  icon = "italic",
  mobile = true,
  priority = -4,
  run = function()
    editor.invokeCommand("Text: Italic")
  end
}

actionButton.define {
  icon = "minus",
  mobile = true,
  priority = -5,
  run = function()
    editor.invokeCommand("Text: Strikethrough")
  end
}
```

AHHHH now I get it :smiley:
Thanks a lot !! Works perfectly