@@ -238,7 +238,7 @@ public Result CreateNewPageResult(string newPageName, OneNoteSection section)
238
238
{
239
239
Title = $ "Create page: \" { newPageName } \" ",
240
240
SubTitle = $ "Path: { GetNicePath ( section ) } { PathSeparator } { newPageName } ",
241
- AutoCompleteText = $ "{ GetAutoCompleteText } { newPageName } ",
241
+ AutoCompleteText = $ "{ GetAutoCompleteText ( section ) } { newPageName } ",
242
242
IcoPath = iconProvider . NewPage ,
243
243
PreviewPanel = GetNewPagePreviewPanel ( section , newPageName ) ,
244
244
Action = _ =>
@@ -262,7 +262,7 @@ public Result CreateNewSectionResult(string newSectionName, IOneNoteItem parent)
262
262
SubTitle = validTitle
263
263
? $ "Path: { GetNicePath ( parent ) } { PathSeparator } { newSectionName } "
264
264
: $ "Section names cannot contain: { string . Join ( ' ' , OneNoteApplication . InvalidSectionChars ) } ",
265
- AutoCompleteText = $ "{ GetAutoCompleteText } { newSectionName } ",
265
+ AutoCompleteText = $ "{ GetAutoCompleteText ( parent ) } { newSectionName } ",
266
266
IcoPath = iconProvider . NewSection ,
267
267
Action = _ =>
268
268
{
@@ -299,7 +299,7 @@ public Result CreateNewSectionGroupResult(string newSectionGroupName, IOneNoteIt
299
299
SubTitle = validTitle
300
300
? $ "Path: { GetNicePath ( parent ) } { PathSeparator } { newSectionGroupName } "
301
301
: $ "Section group names cannot contain: { string . Join ( ' ' , OneNoteApplication . InvalidSectionGroupChars ) } ",
302
- AutoCompleteText = $ "{ GetAutoCompleteText } { newSectionGroupName } ",
302
+ AutoCompleteText = $ "{ GetAutoCompleteText ( parent ) } { newSectionGroupName } ",
303
303
IcoPath = iconProvider . NewSectionGroup ,
304
304
Action = _ =>
305
305
{
@@ -336,7 +336,7 @@ public Result CreateNewNotebookResult(string newNotebookName)
336
336
SubTitle = validTitle
337
337
? $ "Location: { OneNoteApplication . GetDefaultNotebookLocation ( ) } "
338
338
: $ "Notebook names cannot contain: { string . Join ( ' ' , OneNoteApplication . InvalidNotebookChars ) } ",
339
- AutoCompleteText = $ "{ GetAutoCompleteText } { newNotebookName } ",
339
+ AutoCompleteText = $ "{ ActionKeyword } { settings . Keywords . NotebookExplorer } { newNotebookName } ",
340
340
IcoPath = iconProvider . NewNotebook ,
341
341
Action = _ =>
342
342
{
0 commit comments