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

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions