@@ -2,66 +2,49 @@ This is where you configure SilverBullet to your liking. See [[^Library/Std/Conf
22
33# Main configuration
44``` space-lua
5- config.set {
6- actionButtons = {
7- {
8- icon = "home",
9- description = "Go to the index page",
10- run = function()
11- editor.invokeCommand("Navigate: Home")
12- end
13- },
14- {
15- icon = "activity",
16- description = "What's new",
17- run = function()
18- editor.navigate "CHANGELOG"
19- end
20- },
21- {
22- icon = "message-circle",
23- description = "Community",
24- run = function()
25- editor.openUrl "https://community.silverbullet.md"
26- end
27- },
28- {
29- icon = "github",
30- description = "Github",
31- run = function()
32- editor.openUrl "https://github.com/silverbulletmd/silverbullet"
33- end
34- },
35- {
36- icon = "heart",
37- description = "Funding",
38- run = function()
39- editor.navigate "Funding"
40- end
41- },
42- {
43- icon = "book",
44- description = "Open page",
45- dropdown = false,
46- run = function()
47- editor.invokeCommand("Navigate: Page Picker")
48- end
49- },
50- {
51- icon = "search",
52- description = "Search",
53- run = function()
54- editor.invokeCommand("Silversearch: Search")
55- end
56- },
57- {
58- icon = "terminal",
59- description = "Run command",
60- run = function()
61- editor.invokeCommand "Open Command Palette"
62- end,
63- }
64- }
5+ actionButton.define {
6+ icon = "activity",
7+ description = "What's new",
8+ priority = 2.8,
9+ run = function()
10+ editor.navigate "CHANGELOG"
11+ end
12+ }
13+
14+ actionButton.define {
15+ icon = "message-circle",
16+ description = "Community",
17+ priority = 2.7,
18+ run = function()
19+ editor.openUrl "https://community.silverbullet.md"
20+ end
21+ }
22+
23+ actionButton.define {
24+ icon = "github",
25+ description = "Github",
26+ priority = 2.6,
27+ run = function()
28+ editor.openUrl "https://github.com/silverbulletmd/silverbullet"
29+ end
30+ }
31+
32+ actionButton.define {
33+ icon = "heart",
34+ description = "Funding",
35+ priority = 2.5,
36+ run = function()
37+ editor.navigate "Funding"
38+ end
39+ }
40+
41+ actionButton.define {
42+ icon = "search",
43+ description = "Search",
44+ priority = 1.5,
45+ run = function()
46+ editor.invokeCommand("Silversearch: Search")
47+ end
6548}
6649```
6750
0 commit comments