@@ -8,18 +8,35 @@ const SEPARATOR = { title: "----" };
8
8
9
9
async function getNoteTypeItems ( command ?: TreeCommandNames ) {
10
10
const items : MenuItem < TreeCommandNames > [ ] = [
11
+ // The suggested note type ordering method: insert the item into the corresponding group,
12
+ // then ensure the items within the group are ordered alphabetically.
13
+ // Please keep the order synced with the listing found also in aps/client/src/widgets/note_types.ts.
14
+
15
+ // The default note type (always the first item)
11
16
{ title : t ( "note_types.text" ) , command, type : "text" , uiIcon : "bx bx-note" } ,
12
- { title : t ( "note_types.code" ) , command, type : "code" , uiIcon : "bx bx-code" } ,
13
- { title : t ( "note_types.saved-search" ) , command, type : "search" , uiIcon : "bx bx-file-find" } ,
14
- { title : t ( "note_types.relation-map" ) , command, type : "relationMap" , uiIcon : "bx bxs-network-chart" } ,
15
- { title : t ( "note_types.note-map" ) , command, type : "noteMap" , uiIcon : "bx bxs-network-chart" } ,
16
- { title : t ( "note_types.render-note" ) , command, type : "render" , uiIcon : "bx bx-extension" } ,
17
+
18
+ // Text notes group
17
19
{ title : t ( "note_types.book" ) , command, type : "book" , uiIcon : "bx bx-book" } ,
18
- { title : t ( "note_types.mermaid-diagram" ) , command, type : "mermaid" , uiIcon : "bx bx-selection" } ,
20
+
21
+ // Graphic notes
19
22
{ title : t ( "note_types.canvas" ) , command, type : "canvas" , uiIcon : "bx bx-pen" } ,
20
- { title : t ( "note_types.web-view" ) , command, type : "webView" , uiIcon : "bx bx-globe-alt" } ,
21
- { title : t ( "note_types.mind-map" ) , command, type : "mindMap" , uiIcon : "bx bx-sitemap" } ,
23
+ { title : t ( "note_types.mermaid-diagram" ) , command, type : "mermaid" , uiIcon : "bx bx-selection" } ,
24
+
25
+ // Map notes
22
26
{ title : t ( "note_types.geo-map" ) , command, type : "geoMap" , uiIcon : "bx bx-map-alt" } ,
27
+ { title : t ( "note_types.mind-map" ) , command, type : "mindMap" , uiIcon : "bx bx-sitemap" } ,
28
+ { title : t ( "note_types.note-map" ) , command, type : "noteMap" , uiIcon : "bx bxs-network-chart" } ,
29
+ { title : t ( "note_types.relation-map" ) , command, type : "relationMap" , uiIcon : "bx bxs-network-chart" } ,
30
+
31
+ // Misc note types
32
+ { title : t ( "note_types.render-note" ) , command, type : "render" , uiIcon : "bx bx-extension" } ,
33
+ { title : t ( "note_types.saved-search" ) , command, type : "search" , uiIcon : "bx bx-file-find" } ,
34
+ { title : t ( "note_types.web-view" ) , command, type : "webView" , uiIcon : "bx bx-globe-alt" } ,
35
+
36
+ // Code notes
37
+ { title : t ( "note_types.code" ) , command, type : "code" , uiIcon : "bx bx-code" } ,
38
+
39
+ // Templates
23
40
...await getBuiltInTemplates ( command ) ,
24
41
...await getUserTemplates ( command )
25
42
] ;
0 commit comments