Skip to content

Commit dab09f4

Browse files
committed
Small refactor
Update Flow.Launcher.Plugin to 5.2.0
1 parent d96f4e1 commit dab09f4

5 files changed

Lines changed: 13 additions & 11 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,3 +353,4 @@ MigrationBackup/
353353

354354
#VSCode
355355
.vscode/
356+
.idea/

Changelog.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
## 3.0.0 - 2026-#-##
44
- **⚠ Now requires Flow Launcher version 2.0.0 or later.**
5-
- Update Flow.Launcher.Plugin to 5.0.0
6-
- Update to Net 9.0
75
- Refactored code
8-
- Migrate from `Odotocodot.OneNote.Linq 1.2.0` to `LinqToOneNote 2.0.0`
9-
- Improve notebook explorer performance.
6+
- Improved notebook explorer performance.
7+
- Dependencies
8+
- Updated to Net 9.0
9+
- Updated `Flow.Launcher.Plugin-4.1.0` to `Flow.Launcher.Plugin-5.2.0`
10+
- Updated `Odotocodot.OneNote.Linq-1.2.0` to `LinqToOneNote-2.0.0`
1011

1112

1213
## 2.1.2 - 2025-6-11

Flow.Launcher.Plugin.OneNote/Flow.Launcher.Plugin.OneNote.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</ItemGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="Flow.Launcher.Plugin" Version="5.0.0" />
31+
<PackageReference Include="Flow.Launcher.Plugin" Version="5.2.0" />
3232
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
3333
<PackageReference Include="ModernWpfUI" Version="0.9.6" />
3434
<PackageReference Include="LinqToOneNote" Version="2.0.0" />

Flow.Launcher.Plugin.OneNote/ResultCreator.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ public List<Result> ContextMenu(Result selectedResult)
302302

303303
results.Add(new Result
304304
{
305-
Title = "Open in new OneNote window",
306-
IcoPath = IconProvider.Logo,
305+
Title = $"Open \"{item.Name}\" in new OneNote window",
306+
Icon = result.Icon,
307307
Score = 20,
308308
AddSelectedCount = false,
309309
Action = _ =>
@@ -320,7 +320,7 @@ public List<Result> ContextMenu(Result selectedResult)
320320
Title = "Show in Notebook Explorer",
321321
SubTitle = autoCompleteText,
322322
AddSelectedCount = false,
323-
Score = 10,
323+
Score = 0,
324324
IcoPath = iconProvider.NotebookExplorer,
325325
Action = _ =>
326326
{
@@ -383,13 +383,13 @@ public List<Result> InvalidQuery(bool includeSubtitle = true)
383383
: string.Empty,
384384
iconProvider.Warning);
385385
}
386-
public List<Result> SearchType(string title, string? parentName)
386+
public List<Result> SearchType(string title, string? parentName, string subTitle = "")
387387
{
388388
if (!string.IsNullOrWhiteSpace(parentName))
389389
{
390390
title += $" in \"{parentName}\"";
391391
}
392-
return SingleResult(title, string.Empty, iconProvider.Search);
392+
return SingleResult(title, subTitle, iconProvider.Search);
393393
}
394394

395395
private static List<Result> SingleResult(string title, string subTitle, string iconPath)

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.2.0-beta",
7+
"Version": "3.0.0-beta",
88
"Language": "csharp",
99
"Website": "https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote",
1010
"IcoPath": "Images/logo.png",

0 commit comments

Comments
 (0)