Shell
Shell copied to clipboard
Feature suggestion: POWERSHELL PIPING
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.