PSNote doesnt copy the snippet to the clipboard while the action is set to 'Copy' when running the psnote alias with -run.
hi @mdowst , I can't copy the snippet while I am running the PSNote alias cutxyz with -run. Here is the note below with action set to "Copy" in PSNotes.json file. { "Note": "cutxyz", "Alias": "cutxyz", "Action": "Copy", "Details": "to remove elements xyz from string", "Tags": [ "string" ], "Snippet": ""helloo xyz " -replace "xyz","" \n\n" }
It runs the snippet and output its to console, but does'nt copy the snippet to the clipboard. PS C:>cutxyz -run [Doesnt copy the snippet to the clipboard] helloo [OUTPUT]
I never considered someone would want to do both. I'm working on some updates to the module now. I should be able to fit this in as well. Might make it a configuration option. Thanks for the feedback.