-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[PT Run] Sys Plugin Port from Wox.Plugins.Sys #8062
[PT Run] Sys Plugin Port from Wox.Plugins.Sys #8062
Conversation
New misspellings found, please review:
To accept these changes, run the following commands
|
@benjamhooper |
src/modules/launcher/Plugins/Microsoft.Plugin.Sys/Win32/NativeMethods.cs
Outdated
Show resolved
Hide resolved
@crutkas @niels9001 |
@enricogior @BenjaminHooper - Yeah, let's stick to Segoe MDL2 Assets icons so we are consistent across all plug-ins and have a more native look and feel. I'll create them and upload them here, so @BenjaminHooper can take those in. |
@benjamhooper Here's a .zip with all the MDL2 icons, for both the dark and light theme: Overview of the new icons: |
Idea for an enhancement |
@htcfreek I'll look into this more. Is there a feature already implemented in PT Run to allow you to confirm text? Example: I type shutdown (or any other command), hit enter. It Clears search and says, "Enter Time (Seconds) before Shutdown or press enter to immediately shutdown." A second approach I was thinking of was adding ContextMenuResult(s) to commands(Shutdown and Sleep). With static time(s) 15s, 30s, 60s, etc.. |
I would not use two steps method. I would use the parameter way like Context menu is only available with the buttons. It's by design/concept. |
New misspellings found, please review:
To accept these changes, run the following commands
|
Should be short and simple:
Maybe we can add 4 buttons:
|
@benjamhooper
|
@enricogior Added 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm!
Did I do something wrong for the build to fail? |
@benjamhooper |
fixed the merge conflict, reviewing code now and will test locally |
@@ -0,0 +1,12 @@ | |||
{ | |||
"ID":"CEA08895D2544B019B2E9C5009600DF4", | |||
"ActionKeyword":"*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would we want a direct action key for this? Example =2+2 is for calculator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could understand using \
ie. \shutdown
, \restart
, \hibernate
. This could be utilized to expand this plugin.
looks like i oop'ed the sln. pushed a fix. once this works it is good to go. |
@benjamhooper do you still need a plugin icon? Like the other plugins have as well? If so, I'd go for the power button icon to represent the plugin itself and the actual action. |
@niels9001, lets tweak the icons in diff PR. |
@benjamhooper you good with where it is getting merged in? |
I don't mean to review my own PR, but LGTM based on the reviews and fixes. I started a new issue for the UpdateIconPath as well. |
@benjamhooper wanted to be sure you didn't have a "just one more thing" before we merged it in. |
@crutkas @benjamhooper |
My thought was to do that outside this PR since that is much more something only our team can own. i can check that in in a different PR |
kind of want to get #8145 in first as well. |
@benjamhooper |
@htcfreek I can implement this feature, would you like me to open another PR/Issue? |
@enricogior, your call to have this in for .27 |
@crutkas |
@benjamhooper |
Summary of the Pull Request
Ability to Execute System/OS Commands
PR Checklist
Info on Pull Request
Direct Port from Wox.Plugins.Sys
Ability to use OS Commands:
Validation Steps Performed