@@ -37,7 +37,7 @@ public void Init(PluginInitContext context)
37
37
hasOneNote = false ;
38
38
return ;
39
39
}
40
-
40
+
41
41
notebookInfo = new OneNoteItemInfo ( "NotebookIcons" , "notebook.png" , context ) ;
42
42
sectionInfo = new OneNoteItemInfo ( "SectionIcons" , "section.png" , context ) ;
43
43
}
@@ -61,8 +61,8 @@ public List<Result> Query(Query query)
61
61
results . Add ( new Result
62
62
{
63
63
Title = "Search OneNote pages" ,
64
- SubTitle = "Type \" " + structureKeyword + " \" to search by notebook structure or select this option",
65
- AutoCompleteText = context . CurrentPluginMetadata . ActionKeyword + " " + structureKeyword ,
64
+ SubTitle = $ "Type \" { structureKeyword } \" to search by notebook structure or select this option",
65
+ AutoCompleteText = $ " { context . CurrentPluginMetadata . ActionKeyword } { structureKeyword } " ,
66
66
IcoPath = logoIconPath ,
67
67
Score = 2000 ,
68
68
Action = c =>
@@ -74,13 +74,13 @@ public List<Result> Query(Query query)
74
74
results . Add ( new Result
75
75
{
76
76
Title = "See recent pages" ,
77
- SubTitle = "Type \" " + recentKeyword + " \" to see last modified pages or select this option",
78
- AutoCompleteText = context . CurrentPluginMetadata . ActionKeyword + " " + recentKeyword ,
77
+ SubTitle = $ "Type \" { recentKeyword } \" to see last modified pages or select this option",
78
+ AutoCompleteText = $ " { context . CurrentPluginMetadata . ActionKeyword } { recentKeyword } " ,
79
79
IcoPath = recentIconPath ,
80
80
Score = - 1000 ,
81
81
Action = c =>
82
82
{
83
- context . API . ChangeQuery ( context . CurrentPluginMetadata . ActionKeyword + " " + recentKeyword ) ;
83
+ context . API . ChangeQuery ( $ " { context . CurrentPluginMetadata . ActionKeyword } { recentKeyword } " ) ;
84
84
return false ;
85
85
} ,
86
86
} ) ;
@@ -293,7 +293,7 @@ private Result CreatePageResult(IOneNotePage page, IOneNoteSection section, IOne
293
293
{
294
294
Title = page . Name ,
295
295
SubTitle = path ,
296
- TitleToolTip = "Created: " + page . DateTime + " \n Last Modified: " + page . LastModified ,
296
+ TitleToolTip = $ "Created: { page . DateTime } \n Last Modified: { page . LastModified } " ,
297
297
SubTitleToolTip = path ,
298
298
IcoPath = logoIconPath ,
299
299
ContextData = page ,
0 commit comments