Skip to content

Commit 2ff6e1d

Browse files
authored
Merge pull request #23 from Odotocodot/dev
Version 2.1.0
2 parents df5d6cf + 4bf99be commit 2ff6e1d

File tree

86 files changed

+1476
-930
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1476
-930
lines changed

.gitmodules

Lines changed: 0 additions & 4 deletions
This file was deleted.

Changelog.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# Changelog
2+
3+
## 2.1.0 - 2024-6-24
4+
5+
### Added
6+
7+
- New and improved icons.
8+
- New preview panel for creating pages ([#20](https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote/issues/20))
9+
- New setting for icon theme: FL Default (matches Flow Launcher's theme), light, dark and color.
10+
- Opening a hierarchy item from the plugin now always brings OneNote to the front.
11+
- New Hotkey (<kbd>Ctrl</kbd> + <kbd>⏎ Enter</kbd>) to create new items without opening them in OneNote.
12+
13+
### Changed
14+
15+
- Refactored icon generation.
16+
- Refactored settings view.
17+
- Changed Linq2OneNote library reference from submodule to NuGet package.
18+
- Updated tooltips for notebooks, section groups, sections and pages.
19+
20+
### Fixes
21+
22+
- Fixed incorrect autocomplete text for creating new items.
23+
24+
## 2.0.1 - 2023-10-09
25+
26+
### Added
27+
28+
- OneNote is now opened asynchronously to prevent blocking UI ([#15](https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote/issues/15))
29+
30+
## 2.0.0 - 2023-10-05
31+
32+
### **Breaking Changes**
33+
34+
- Now requires Flow Launcher version 1.16 or later.
35+
36+
### Added
37+
38+
- **[Created custom OneNote parser/library](https://github.com/Odotocodot/Linq2OneNote)**, adding the ability for several new features.
39+
- Support for section groups when using the notebook explorer.
40+
- Support for displaying unread results.
41+
- Support for showing locked sections in results (you still can't see inside them unless they are unlocked).
42+
- The ability to search by only title.
43+
- The ability to do a scoped search (e.g. search in one section only).
44+
- **Settings!** You can change these options:
45+
- Show unread icons.
46+
- Show encrypted sections.
47+
- Show recycle bin items.
48+
- Created coloured icons for notebook and sections.
49+
- Default number of recent pages
50+
- **Customisable keywords!**
51+
52+
### Changed
53+
54+
- Compressed images.
55+
- Reduced the calls to create a OneNote COM object, this should lead to an overall smoother experience.
56+
- Updated to .NET 7 (update Flow Launcher if an error persists).
57+
- Refactored the majority of code and project structure.
58+
59+
### Removed
60+
61+
- [Scipbe.Common.Office.OneNote](https://github.com/scipbe/ScipBe-Common-Office) package reference.
62+
63+
## 1.1.1 - 2023-03-05
64+
65+
### Fixes
66+
67+
- Fixed crash on search ([#7](https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote/issues/7))
68+
69+
## 1.1.0 - 2023-03-04
70+
71+
### Added
72+
73+
- Added the ability to create notebooks, sections and pages.
74+
75+
### Changes
76+
77+
- Improved the readme
78+
79+
### Fixes
80+
81+
- Fixed typos
82+
83+
## 1.0.2 - 2023-02-28
84+
85+
### Fixes
86+
87+
- Fixed crash due to encrypted sections ([#3](https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote/issues/3), [#4](https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote/issues/4))
88+
89+
## 1.0.1 - 2023-01-15
90+
91+
### Fixes
92+
93+
- Fixed crash on invalid search ([#1](https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote/issues/1))
94+
95+
## 1.0.0 - 2022-12-16
96+
97+
Initial Release

Flow.Launcher.Plugin.OneNote.sln

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1111
LICENSE = LICENSE
1212
Readme.md = Readme.md
1313
release.ps1 = release.ps1
14+
Changelog.md = Changelog.md
1415
EndProjectSection
1516
EndProject
16-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Odotocodot.OneNote.Linq", "Odotocodot.OneNote.Linq\Odotocodot.OneNote.Linq\Odotocodot.OneNote.Linq.csproj", "{AB2CEDD9-15DB-4EAF-A675-10928E83918D}"
17-
EndProject
1817
Global
1918
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2019
Debug|Any CPU = Debug|Any CPU
@@ -25,10 +24,6 @@ Global
2524
{3801047C-BEF0-4774-91DB-B64EEE874BB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
2625
{3801047C-BEF0-4774-91DB-B64EEE874BB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
2726
{3801047C-BEF0-4774-91DB-B64EEE874BB2}.Release|Any CPU.Build.0 = Release|Any CPU
28-
{AB2CEDD9-15DB-4EAF-A675-10928E83918D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29-
{AB2CEDD9-15DB-4EAF-A675-10928E83918D}.Debug|Any CPU.Build.0 = Debug|Any CPU
30-
{AB2CEDD9-15DB-4EAF-A675-10928E83918D}.Release|Any CPU.ActiveCfg = Release|Any CPU
31-
{AB2CEDD9-15DB-4EAF-A675-10928E83918D}.Release|Any CPU.Build.0 = Release|Any CPU
3227
EndGlobalSection
3328
GlobalSection(SolutionProperties) = preSolution
3429
HideSolutionNode = FALSE

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
1212
<UseWPF>true</UseWPF>
1313
<UseWindowsForms>true</UseWindowsForms>
14+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <!-- Required for bringing OneNote to front -->
1415
</PropertyGroup>
1516

1617
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
@@ -26,17 +27,15 @@
2627

2728
<ItemGroup>
2829
<PackageReference Include="Flow.Launcher.Plugin" Version="4.1.0" />
30+
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
2931
<PackageReference Include="ModernWpfUI" Version="0.9.6" />
30-
<PackageReference Include="System.Drawing.Common" Version="7.0.0" />
32+
<PackageReference Include="Odotocodot.OneNote.Linq" Version="1.1.0" />
33+
<PackageReference Include="System.Drawing.Common" Version="8.0.6" />
3134
</ItemGroup>
3235

3336
<ItemGroup>
3437
<Content Include="Images\*.png">
3538
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
3639
</Content>
3740
</ItemGroup>
38-
39-
<ItemGroup>
40-
<ProjectReference Include="..\Odotocodot.OneNote.Linq\Odotocodot.OneNote.Linq\Odotocodot.OneNote.Linq.csproj" />
41-
</ItemGroup>
4241
</Project>

Flow.Launcher.Plugin.OneNote/Icons.cs

Lines changed: 0 additions & 123 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
namespace Flow.Launcher.Plugin.OneNote.Icons
2+
{
3+
public static class IconConstants
4+
{
5+
public const string ImagesDirectory = "Images/";
6+
public const string GeneratedImagesDirectory = $"{ImagesDirectory}Generated/";
7+
8+
public const string Logo = "logo";
9+
10+
public const string Notebook = "notebook";
11+
public const string SectionGroup = "section_group";
12+
public const string RecycleBin = "recycle_bin";
13+
public const string Section = "section";
14+
public const string Page = "page";
15+
16+
public const string Sync = "sync";
17+
public const string Search = "search";
18+
public const string Recent = "page_recent";
19+
public const string NotebookExplorer = "notebook_explorer";
20+
public const string NewPage = "page_new";
21+
public const string NewSection = "section_new";
22+
public const string NewSectionGroup = "section_group_new";
23+
public const string NewNotebook = "notebook_new";
24+
public const string Warning = "warning";
25+
}
26+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System.Drawing;
2+
using Odotocodot.OneNote.Linq;
3+
4+
namespace Flow.Launcher.Plugin.OneNote.Icons
5+
{
6+
public record struct IconGeneratorInfo
7+
{
8+
public string Prefix { get; }
9+
public Color? Color { get; }
10+
11+
public IconGeneratorInfo(OneNoteNotebook notebook)
12+
{
13+
Prefix = IconConstants.Notebook;
14+
Color = notebook.Color;
15+
}
16+
public IconGeneratorInfo(OneNoteSectionGroup sectionGroup)
17+
{
18+
Prefix = sectionGroup.IsRecycleBin ? IconConstants.RecycleBin : IconConstants.SectionGroup;
19+
}
20+
public IconGeneratorInfo(OneNoteSection section)
21+
{
22+
Prefix = IconConstants.Section;
23+
Color = section.Color;
24+
}
25+
public IconGeneratorInfo(OneNotePage page)
26+
{
27+
Prefix = IconConstants.Page;
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)