Skip to content

Conversation

@JohnTheGr8
Copy link
Member

@JohnTheGr8 JohnTheGr8 commented Jul 2, 2020

As discussed in #95, I have ported Wox.Plugin.ProcessKiller as a default plugin for the Flow Launcher.

I have also made a few minor enhancements:

  • highlighting how the process name matched the result title
  • set it up for i18n to prepare for translations
  • added a context-menu option to kill all instances of a given executable
  • removed the kill all X processes when the filtered process results are not all from the same path, to avoid killing processes by mistake.
  • support spaces in process search

I think we should find a better icon but other than that it works well...

Screenshots of how it looks in action:

image

image

This plugin is a direct port of Wox.Plugin.ProcessKiller from
https://github.com/theClueless/Wox.Plugins
for consistency with other plugins
To avoid killing processes by mistake, only give the option to kill all
displayed processes when they are all instances of the same executable.
to kill all processes whose file path matches with the selected result.
@JohnTheGr8 JohnTheGr8 added the enhancement New feature or request label Jul 2, 2020
@JohnTheGr8 JohnTheGr8 self-assigned this Jul 2, 2020
@JohnTheGr8 JohnTheGr8 requested review from jjw24 and theClueless July 2, 2020 23:59
Copy link
Member

@jjw24 jjw24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we break Main's code up, at the very minimum the code handling processes should be in a separate file/class?

Otherwise LGTM

@JohnTheGr8 JohnTheGr8 changed the title Plugin process killer Add plugin: Process Killer Jul 3, 2020
@JohnTheGr8
Copy link
Member Author

Could we break Main's code up, at the very minimum the code handling processes should be in a separate file/class?

I agree, I wanted to split the code but it was getting late yesterday and I left it for later.

Done now, and also added a couple minor enhancements.

@JohnTheGr8 JohnTheGr8 requested a review from jjw24 July 3, 2020 14:15
@JohnTheGr8 JohnTheGr8 force-pushed the plugin_process_killer branch from 7fb722c to daa112e Compare July 3, 2020 14:37
@JohnTheGr8 JohnTheGr8 added the plugin/port A request to port an existing Wox/Powertoys/other plugin label Jul 3, 2020
@jjw24 jjw24 merged commit a828e9c into Flow-Launcher:dev Jul 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request plugin/port A request to port an existing Wox/Powertoys/other plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants