Skip to content

Commit

Permalink
Merge pull request #8 from Odotocodot/dev
Browse files Browse the repository at this point in the history
Fix #7 (error on default search)
  • Loading branch information
Odotocodot committed Mar 5, 2023
2 parents 8e56809 + a69da65 commit d5da4f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ResultCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public Result CreatePageResult(IOneNotePage page, IOneNoteSection section, IOneN
TitleToolTip = $"Created: {page.DateTime}\nLast Modified: {page.LastModified}",
TitleHighlightData = highlightingData,
SubTitle = GetNicePath(section, notebook, true),
AutoCompleteText = $"{context.CurrentPluginMetadata.ActionKeyword} {Keywords.NotebookExplorer}{LastSelectedNotebook.Name}\\{section.Name}\\{page.Name}",
IcoPath = Icons.Logo,
ContextData = page,
Action = c =>
Expand All @@ -68,7 +67,7 @@ public Result CreatePageResult(IOneNotePage page, IOneNoteSection section, IOneN
public Result CreateSectionResult(IOneNoteExtSection section, IOneNoteExtNotebook notebook, List<int> highlightData = null)
{
string path = GetNicePath(section, notebook, false);
string autoCompleteText = $"{context.CurrentPluginMetadata.ActionKeyword} {Keywords.NotebookExplorer}{LastSelectedNotebook.Name}\\{section.Name}\\";
string autoCompleteText = $"{context.CurrentPluginMetadata.ActionKeyword} {Keywords.NotebookExplorer}{notebook.Name}\\{section.Name}\\";
return new Result
{
Title = section.Name,
Expand Down

0 comments on commit d5da4f7

Please sign in to comment.