[PTRun]Add history plugin (#19569)

* Progress!

* Progress...

* POC level.

* Added ability to delete from history using IPublicAPI

* Some sorting, works in some cases.

* Rename "Run History" back to just "History".

* Updated item from review.

* Slight change to PowerLauncher ref, set Copy Local = False

* Fixed missing history items if added to history without search term.

* Added placeholder unit test project

* Updates for new History plugin.

* Update Product.wxs, removed useless Unit Test project

* Removed actual files for "Microsoft.PowerToys.Run.Plugin.History.UnitTests"

* Added history.md, updated ESRPSigning_core.json

* Changes for review

* Removed now global CodeAnalysis/stylecop
This commit is contained in:
Jeff Lord
2022-08-23 16:27:45 -04:00
committed by GitHub
parent 8cea22aaf1
commit 4c796c0b53
21 changed files with 940 additions and 64 deletions

View File

@@ -6,6 +6,7 @@ using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO.Abstractions;
using System.Text.Json.Serialization;
using System.Windows;
using System.Windows.Media;
@@ -42,6 +43,12 @@ namespace Wox.Plugin
}
}
public bool FromHistory { get; set; }
public string HistoryPluginID { get; set; }
public string HistoryTitle { get; set; }
public string SubTitle { get; set; }
public string Glyph { get; set; }
@@ -98,6 +105,7 @@ namespace Wox.Plugin
/// <summary>
/// Gets or sets return true to hide wox after select result
/// </summary>
[JsonIgnore]
public Func<ActionContext, bool> Action { get; set; }
public int Score { get; set; }