mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
[PTRun][ValueGenerator]Add support for UUIDv7 (#35757)
* add Run support for UUIDv7 generation * simplify comments and maybe satisfy spell check * fix endianess * prefer stack allocation for temporary fixed-size buffer * perhaps the async test caused the pipeline to hang * switch to .NET 9 BCL implementation of UUIDv7 * add UUIDv7 to input query suggestions + update exception messages to include v7 * simplify Guid description switch + update devdocs
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
|
||||
using Community.PowerToys.Run.Plugin.ValueGenerator.Properties;
|
||||
|
||||
@@ -23,6 +22,7 @@ namespace Community.PowerToys.Run.Plugin.ValueGenerator.Helper
|
||||
private static readonly string GeneratorDescriptionUuidv3 = Resources.generator_description_uuidv3;
|
||||
private static readonly string GeneratorDescriptionUuidv4 = Resources.generator_description_uuidv4;
|
||||
private static readonly string GeneratorDescriptionUuidv5 = Resources.generator_description_uuidv5;
|
||||
private static readonly string GeneratorDescriptionUuidv7 = Resources.generator_description_uuidv7;
|
||||
private static readonly string GeneratorDescriptionHash = Resources.generator_description_hash;
|
||||
private static readonly string GeneratorDescriptionBase64 = Resources.generator_description_base64;
|
||||
private static readonly string GeneratorDescriptionBase64d = Resources.generator_description_base64d;
|
||||
@@ -92,6 +92,12 @@ namespace Community.PowerToys.Run.Plugin.ValueGenerator.Helper
|
||||
Example = $"uuidv5 ns:<DNS, URL, OID, {GetStringFormat(Or)} X500> <{GetStringFormat(GeneratorDescriptionYourInput)}>",
|
||||
},
|
||||
new()
|
||||
{
|
||||
Keyword = "uuidv7",
|
||||
Description = GetStringFormat(GeneratorDescriptionUuidv7),
|
||||
Example = $"uuidv7 {GetStringFormat(Or)} uuid7",
|
||||
},
|
||||
new()
|
||||
{
|
||||
Keyword = "md5",
|
||||
Description = GetStringFormat(GeneratorDescriptionHash, "MD5"),
|
||||
|
||||
Reference in New Issue
Block a user