Shell icon indicating copy to clipboard operation
Shell copied to clipboard

Feature suggestion: POWERSHELL PIPING

Open cow1337killer3 opened this issue 1 year ago • 0 comments

Using debug build 45

Add a "powershell" field that will let us specify commands to be performed on each selection. This has incredibly improved performance over using Invoke=multiple.

This currently can be achieved with: item(title='Test' cmd='powershell' args='-Command \@( @sel(true,",") ) | % { (Get-Item $_).CreationTime=(Get-Date) }')

But with this new field, it'd be much simpler: item(title='Test' powershell='(Get-Item $_).CreationTime=(Get-Date)')

In the case of a powershell field being populated, the cmd and args fields will be ignored.

cow1337killer3 avatar Sep 09 '23 10:09 cow1337killer3