Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HemNorthsake7 opened this issue May 13, 2022 · 1 comment

Comments

@HemNorthsake7
Copy link

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]

@mdowst
Copy link
Owner

mdowst commented May 23, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants