Skip to content

Version 2.1.0 #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
40b5b04
Change submodule to nuget package
Odotocodot Oct 16, 2023
9d09d21
Update ResultCreator.cs
Odotocodot Dec 5, 2023
e91068d
Add and Update Icons
Odotocodot May 24, 2024
d09f5fa
Update SearchManager.cs
Odotocodot May 24, 2024
6c4b083
Remove unneeded files and comments
Odotocodot May 24, 2024
4f61a48
Fix clearing cached icons not working
Odotocodot May 25, 2024
a7616e5
Implement the plugin theme setting
Odotocodot May 25, 2024
26ab1b8
Small tweaks
Odotocodot Jun 2, 2024
801a890
Create Changelog
Odotocodot Jun 2, 2024
8940b1e
Rename PluginTheme to IconTheme
Odotocodot Jun 4, 2024
cbbf463
Rename images to match icon theme rather than plugin theme
Odotocodot Jun 6, 2024
9378ce0
Remove magic strings
Odotocodot Jun 6, 2024
e3d316e
Implement system matching icon theme
Odotocodot Jun 7, 2024
b93ffc2
Refactored Icon.cs to be non-static
Odotocodot Jun 8, 2024
aa85896
Rename Icons.cs to IconProvider.cs
Odotocodot Jun 8, 2024
ad7890b
Reorganise files
Odotocodot Jun 8, 2024
fb4a9a3
Remove code-behind
Odotocodot Jun 10, 2024
9e879a8
Move magic strings to IconConstants.cs
Odotocodot Jun 10, 2024
dc590ad
Add Icon theme preview
Odotocodot Jun 11, 2024
1e2a4e0
Add and use Humanizer package
Odotocodot Jun 11, 2024
98d3289
Add theme preview
Odotocodot Jun 12, 2024
8892d5c
Simplify Windows theme watcher to easy resource check
Odotocodot Jun 12, 2024
dc170ca
Add ForceReQuery method to Main.cs
Odotocodot Jun 14, 2024
9e1273c
Add a preview panel for creating pages
Odotocodot Jun 14, 2024
dc0b66f
Add create page shortcut
Odotocodot Jun 14, 2024
5255e17
Update Changelog and Readme
Odotocodot Jun 14, 2024
0c84e0e
Fix crash on GetIcon
Odotocodot Jun 21, 2024
3e998cb
Focus OneNote when its opened
Odotocodot Jun 21, 2024
c303ed6
Implement the preview panel
Odotocodot Jun 22, 2024
af3dfc7
Fix incorrect auto complete for some results
Odotocodot Jun 22, 2024
b7da4a9
Update tooltips for results
Odotocodot Jun 22, 2024
4fd333e
Refactor IconProvider.cs
Odotocodot Jun 22, 2024
983c441
Add new shortcuts
Odotocodot Jun 22, 2024
58b4c88
Move caret position on focus
Odotocodot Jun 22, 2024
f0814fb
Add new gifs
Odotocodot Jun 22, 2024
f334dd7
Remove conflicting shortcut
Odotocodot Jun 23, 2024
7a2c621
Update Readme
Odotocodot Jun 23, 2024
1c39c03
Update Changelog
Odotocodot Jun 23, 2024
4bf99be
Update Changelog
Odotocodot Jun 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading