microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.73k stars 6.58k forks source link

[PT Run] [Time and Date plugin] Allow custom format string #16934

Open htcfreek opened 2 years ago

htcfreek commented 2 years ago

Description of the new feature / enhancement

The PR #16662 implements a new plugin for date and time values.

It might be interesting to support custom format string as user input like the wox plugin "DateTimeFormatter".

Scenario when this would be used?

If the user needs an unsupported format.

Supporting information

https://github.com/sobujbd/Wox.Plugin.DateTimeFormatter


⚠ The work on this enhancement can't begin before the plugin code is merged into main branch!!

htcfreek commented 2 years ago

PR is merged.

Picazsoo commented 1 year ago

Hi @htcfreek , I think this is a really good idea. Even better would be to also be able to manually add custom format string in the Date and Time plugin settings. So the user could specify their own custom format and always have it appear as the very last result (hence possible to navigate directly to it by pressing up).

The reason this functionality would be pretty useful is because currently none of the include date & time formats can be directly pasted into a Windows file / directory name, since they include either forward slashes or colons. I created an issue #24911 for a proposal for a simple addition of one more date time format, but more robust solution with custom persistable format would be preferable I think.