PSNotes icon indicating copy to clipboard operation
PSNotes copied to clipboard

PSNote doesnt copy the snippet to the clipboard while the action is set to 'Copy' when running the psnote alias with -run.

Open HemNorthsake7 opened this issue 3 years ago • 1 comments

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]

HemNorthsake7 avatar May 13 '22 11:05 HemNorthsake7

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.

mdowst avatar May 23 '22 12:05 mdowst