Fluent-Search-Tasks
Fluent-Search-Tasks copied to clipboard
Eliminate Extra Newline in Clipboard and Harden Get-Random Usage in PowerShell Scripts
Why this change matters?
Currently every “copy to clipboard” step in the Random Everything plugin uses
Write-Output $value | clip
which always appends \r\n, leaving an unwanted newline behind the value copied in the clipboard.
what this PR changed?
-
Removed trailing newline by replacing all Write-Output … | clip with Set-Clipboard -Value ….
-
Clarified Get-Random calls by piping an explicit array (@(... ) | Get-Random) or using Get-Random -InputObject @(...).
-
Cleaned up string literals to remove unnecessary escape sequences and ensure the arrays are passed correctly.
BUT the modified program has not been tested, WATCH OUT!!!
@George551556 thanks for the contribution! You can test this by dragging and dropping the YAML file into Fluent Search Tasks window
Yeah! I have tested it and proving it can play the role I want.
@George551556 I apologize for the delay, thanks a lot! Merged