Skip to content

Commit 3bd57fe

Browse files
authored
Merge pull request #29 from Odotocodot/dev
Version 2.1.2 Closes #28
2 parents ece36f5 + 540c009 commit 3bd57fe

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.1.2 - 2025-6-11
4+
5+
- Added the ability to open items in a new OneNote window using the context menu.([#28](https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote/issues/28))
6+
37
## 2.1.1 - 2025-1-4
48

59
### Changes

Flow.Launcher.Plugin.OneNote/ResultCreator.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,18 +395,29 @@ public List<Result> ContextMenu(Result selectedResult)
395395
result.SubTitle = string.Empty;
396396
result.ContextData = null;
397397
results.Add(result);
398+
results.Add(new Result
399+
{
400+
Title = "Open in new OneNote window",
401+
IcoPath = IconProvider.Logo,
402+
Action = _ =>
403+
{
404+
OneNoteApplication.ComObject.NavigateTo(item.ID, fNewWindow: true);
405+
WindowHelper.FocusOneNote();
406+
return true;
407+
}
408+
});
398409

399410
if (item is not OneNotePage)
400411
{
401412
results.Add(new Result
402413
{
403-
Title = "Show in Notebook Explorer",
414+
Title = "Copy Notebook Explorer path to clipboard",
404415
SubTitle = result.AutoCompleteText,
405416
Score = - 1000,
406417
IcoPath = iconProvider.NotebookExplorer,
407418
Action = _ =>
408419
{
409-
context.API.ChangeQuery(result.AutoCompleteText);
420+
context.API.CopyToClipboard(result.AutoCompleteText);
410421
return false;
411422
}
412423
});

Flow.Launcher.Plugin.OneNote/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Name": "OneNote",
55
"Description": "Search and create your OneNote notes",
66
"Author": "Odotocodot",
7-
"Version": "2.1.1",
7+
"Version": "2.1.2",
88
"Language": "csharp",
99
"Website": "https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote",
1010
"IcoPath": "Images/logo.png",

0 commit comments

Comments
 (0)