Skip to content

Commit

Permalink
Merge pull request #23 from Odotocodot/dev
Browse files Browse the repository at this point in the history
Version 2.1.0
  • Loading branch information
Odotocodot committed Jun 24, 2024
2 parents df5d6cf + 4bf99be commit 2ff6e1d
Show file tree
Hide file tree
Showing 86 changed files with 1,476 additions and 930 deletions.
4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

97 changes: 97 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Changelog

## 2.1.0 - 2024-6-24

### Added

- New and improved icons.
- New preview panel for creating pages ([#20](https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote/issues/20))
- New setting for icon theme: FL Default (matches Flow Launcher's theme), light, dark and color.
- Opening a hierarchy item from the plugin now always brings OneNote to the front.
- New Hotkey (<kbd>Ctrl</kbd> + <kbd>⏎ Enter</kbd>) to create new items without opening them in OneNote.

### Changed

- Refactored icon generation.
- Refactored settings view.
- Changed Linq2OneNote library reference from submodule to NuGet package.
- Updated tooltips for notebooks, section groups, sections and pages.

### Fixes

- Fixed incorrect autocomplete text for creating new items.

## 2.0.1 - 2023-10-09

### Added

- OneNote is now opened asynchronously to prevent blocking UI ([#15](https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote/issues/15))

## 2.0.0 - 2023-10-05

### **Breaking Changes**

- Now requires Flow Launcher version 1.16 or later.

### Added

- **[Created custom OneNote parser/library](https://github.com/Odotocodot/Linq2OneNote)**, adding the ability for several new features.
- Support for section groups when using the notebook explorer.
- Support for displaying unread results.
- Support for showing locked sections in results (you still can't see inside them unless they are unlocked).
- The ability to search by only title.
- The ability to do a scoped search (e.g. search in one section only).
- **Settings!** You can change these options:
- Show unread icons.
- Show encrypted sections.
- Show recycle bin items.
- Created coloured icons for notebook and sections.
- Default number of recent pages
- **Customisable keywords!**

### Changed

- Compressed images.
- Reduced the calls to create a OneNote COM object, this should lead to an overall smoother experience.
- Updated to .NET 7 (update Flow Launcher if an error persists).
- Refactored the majority of code and project structure.

### Removed

- [Scipbe.Common.Office.OneNote](https://github.com/scipbe/ScipBe-Common-Office) package reference.

## 1.1.1 - 2023-03-05

### Fixes

- Fixed crash on search ([#7](https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote/issues/7))

## 1.1.0 - 2023-03-04

### Added

- Added the ability to create notebooks, sections and pages.

### Changes

- Improved the readme

### Fixes

- Fixed typos

## 1.0.2 - 2023-02-28

### Fixes

- 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))

## 1.0.1 - 2023-01-15

### Fixes

- Fixed crash on invalid search ([#1](https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote/issues/1))

## 1.0.0 - 2022-12-16

Initial Release
7 changes: 1 addition & 6 deletions Flow.Launcher.Plugin.OneNote.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
LICENSE = LICENSE
Readme.md = Readme.md
release.ps1 = release.ps1
Changelog.md = Changelog.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Odotocodot.OneNote.Linq", "Odotocodot.OneNote.Linq\Odotocodot.OneNote.Linq\Odotocodot.OneNote.Linq.csproj", "{AB2CEDD9-15DB-4EAF-A675-10928E83918D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -25,10 +24,6 @@ Global
{3801047C-BEF0-4774-91DB-B64EEE874BB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3801047C-BEF0-4774-91DB-B64EEE874BB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3801047C-BEF0-4774-91DB-B64EEE874BB2}.Release|Any CPU.Build.0 = Release|Any CPU
{AB2CEDD9-15DB-4EAF-A675-10928E83918D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AB2CEDD9-15DB-4EAF-A675-10928E83918D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AB2CEDD9-15DB-4EAF-A675-10928E83918D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AB2CEDD9-15DB-4EAF-A675-10928E83918D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <!-- Required for bringing OneNote to front -->
</PropertyGroup>

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

<ItemGroup>
<PackageReference Include="Flow.Launcher.Plugin" Version="4.1.0" />
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
<PackageReference Include="ModernWpfUI" Version="0.9.6" />
<PackageReference Include="System.Drawing.Common" Version="7.0.0" />
<PackageReference Include="Odotocodot.OneNote.Linq" Version="1.1.0" />
<PackageReference Include="System.Drawing.Common" Version="8.0.6" />
</ItemGroup>

<ItemGroup>
<Content Include="Images\*.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Odotocodot.OneNote.Linq\Odotocodot.OneNote.Linq\Odotocodot.OneNote.Linq.csproj" />
</ItemGroup>
</Project>
123 changes: 0 additions & 123 deletions Flow.Launcher.Plugin.OneNote/Icons.cs

This file was deleted.

26 changes: 26 additions & 0 deletions Flow.Launcher.Plugin.OneNote/Icons/IconConstants.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
namespace Flow.Launcher.Plugin.OneNote.Icons
{
public static class IconConstants
{
public const string ImagesDirectory = "Images/";
public const string GeneratedImagesDirectory = $"{ImagesDirectory}Generated/";

public const string Logo = "logo";

public const string Notebook = "notebook";
public const string SectionGroup = "section_group";
public const string RecycleBin = "recycle_bin";
public const string Section = "section";
public const string Page = "page";

public const string Sync = "sync";
public const string Search = "search";
public const string Recent = "page_recent";
public const string NotebookExplorer = "notebook_explorer";
public const string NewPage = "page_new";
public const string NewSection = "section_new";
public const string NewSectionGroup = "section_group_new";
public const string NewNotebook = "notebook_new";
public const string Warning = "warning";
}
}
30 changes: 30 additions & 0 deletions Flow.Launcher.Plugin.OneNote/Icons/IconGeneratorInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System.Drawing;
using Odotocodot.OneNote.Linq;

namespace Flow.Launcher.Plugin.OneNote.Icons
{
public record struct IconGeneratorInfo
{
public string Prefix { get; }
public Color? Color { get; }

public IconGeneratorInfo(OneNoteNotebook notebook)
{
Prefix = IconConstants.Notebook;
Color = notebook.Color;
}
public IconGeneratorInfo(OneNoteSectionGroup sectionGroup)
{
Prefix = sectionGroup.IsRecycleBin ? IconConstants.RecycleBin : IconConstants.SectionGroup;
}
public IconGeneratorInfo(OneNoteSection section)
{
Prefix = IconConstants.Section;
Color = section.Color;
}
public IconGeneratorInfo(OneNotePage page)
{
Prefix = IconConstants.Page;
}
}
}
Loading

0 comments on commit 2ff6e1d

Please sign in to comment.