Skip to content

Commit eebb491

Browse files
committed
Clean up project file
1 parent 839815d commit eebb491

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

Flow.Launcher.Plugin.OneNote.csproj

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<RepositoryUrl>https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote</RepositoryUrl>
1010
<PackageTags>flow-launcher flow-plugin</PackageTags>
1111
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
12-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1312
</PropertyGroup>
1413

1514
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
@@ -25,20 +24,8 @@
2524

2625
<ItemGroup>
2726
<PackageReference Include="Flow.Launcher.Plugin" Version="2.1.1" />
28-
<PackageReference Include="Microsoft.Identity.Client" Version="4.46.0" />
29-
</ItemGroup>
30-
31-
<ItemGroup>
32-
<PackageReference Include="Microsoft.Graph" Version="4.35.0" />
33-
</ItemGroup>
34-
35-
<ItemGroup>
3627
<PackageReference Include="Interop.Microsoft.Office.Interop.OneNote" Version="1.1.0.2" />
3728
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
38-
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.1.691-beta">
39-
<PrivateAssets>all</PrivateAssets>
40-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
41-
</PackageReference>
4229
<PackageReference Include="ScipBe.Common.Office.OneNote" Version="3.0.1" />
4330
</ItemGroup>
4431

Main.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,9 @@ private Result CreatePageResult(IOneNotePage page, IOneNoteSection section, IOne
288288
{
289289
var sectionPath = section.Path;
290290
var index = sectionPath.IndexOf(notebook.Name);
291-
var path = sectionPath[index..^4].Replace("/", " > "); //"+4" is to remove the ".one" from the path
291+
var path = sectionPath[index..^4] //"+4" is to remove the ".one" from the path
292+
.Replace("/", " > ")
293+
.Replace("\\", " > ");
292294
return new Result
293295
{
294296
Title = page.Name,
@@ -312,7 +314,10 @@ private Result CreateSectionResult(IOneNoteExtSection section, IOneNoteExtNotebo
312314
{
313315
var sectionPath = section.Path;
314316
var index = sectionPath.IndexOf(notebook.Name);
315-
var path = sectionPath[index..^(section.Name.Length + 5)].Replace("/", " > "); //The "+5" is to remove the ".one" and "/" from the path
317+
var path = sectionPath[index..^(section.Name.Length + 5)] //The "+5" is to remove the ".one" and "/" from the path
318+
.Replace("/", " > ")
319+
.Replace("\\", " > ");
320+
316321
return new Result
317322
{
318323
Title = section.Name,

0 commit comments

Comments
 (0)