Here is my failed attempt
config.set {
{
icon = "list",
description = "Tasks",
run = function()
editor.invokeCommand("Navigate: To Page", "Tasks")
end
},
}
The button renders. But the button opens the page “T” instead of “Tasks”
The following was a solution
config.set {
{
icon = "list",
description = "Tasks",
run = function()
editor.invokeCommand("Navigate: To Page", { "Tasks" })
end
},
}
Mr.Red
3
there is an easier and more elegant one.
BTW, I asked the same question myself a couple of weeks ago, here is the solution:
the command is:
editor.navigate("Tasks")