Skip to content

Commit a69da65

Browse files
committed
Fix #7
1 parent f1dc78d commit a69da65

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ResultCreator.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public Result CreatePageResult(IOneNotePage page, IOneNoteSection section, IOneN
5252
TitleToolTip = $"Created: {page.DateTime}\nLast Modified: {page.LastModified}",
5353
TitleHighlightData = highlightingData,
5454
SubTitle = GetNicePath(section, notebook, true),
55-
AutoCompleteText = $"{context.CurrentPluginMetadata.ActionKeyword} {Keywords.NotebookExplorer}{LastSelectedNotebook.Name}\\{section.Name}\\{page.Name}",
5655
IcoPath = Icons.Logo,
5756
ContextData = page,
5857
Action = c =>
@@ -68,7 +67,7 @@ public Result CreatePageResult(IOneNotePage page, IOneNoteSection section, IOneN
6867
public Result CreateSectionResult(IOneNoteExtSection section, IOneNoteExtNotebook notebook, List<int> highlightData = null)
6968
{
7069
string path = GetNicePath(section, notebook, false);
71-
string autoCompleteText = $"{context.CurrentPluginMetadata.ActionKeyword} {Keywords.NotebookExplorer}{LastSelectedNotebook.Name}\\{section.Name}\\";
70+
string autoCompleteText = $"{context.CurrentPluginMetadata.ActionKeyword} {Keywords.NotebookExplorer}{notebook.Name}\\{section.Name}\\";
7271
return new Result
7372
{
7473
Title = section.Name,

0 commit comments

Comments
 (0)