Skip to content

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

@HemNorthsake7

Description

@HemNorthsake7

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions