alfred-process-killer icon indicating copy to clipboard operation
alfred-process-killer copied to clipboard

Allow desc sorting and listing without filter

Open yannickglt opened this issue 8 years ago • 5 comments

  • The argument became optional in the workflow config permitting to display the top most consuming processes (thanks to awk 'NR>1') without having to type a piece of process name.
  • The awk 'NR>1' pipe remove the headers (PID %CPU COMM) and fix issue when displaying all elements or filtering on words containing "PID", "CPU", etc. (probably issue #11)
  • The sort -nrk 2,2 pipe sorts results on the second column descending: CPU.
  • Remove the uid attribute is mandatory to get sorting working. If an UID is present on an element in the XML response, then Alfred will remember it and suggest it in the top ranked results if the user selected it in the past.

image

Closes https://github.com/ngreenstein/alfred-process-killer/issues/10, https://github.com/ngreenstein/alfred-process-killer/issues/11

yannickglt avatar Jun 16 '17 21:06 yannickglt

Hi @ngreenstein! Is it possible to merge this pull request?

yannickglt avatar Jul 19 '17 16:07 yannickglt

Hi @yannickglt, and thanks for this! Unfortunately, I don't have access to a copy of Alfred 3 to test this on (just 2), nor do I have a reliable Internet connection at the moment. I would love to merge this in the future, but, in the meantime, I encourage anyone who wishes to to download from this branch. Thanks again!

ngreenstein avatar Sep 22 '17 14:09 ngreenstein

It's OK! Thanks for your answer. I guess we can wait a bit more to get it merged 😉

yannickglt avatar Sep 22 '17 14:09 yannickglt

You can download Alfred Process Killer with sorting here

yannickglt avatar Feb 15 '18 14:02 yannickglt

I just updated it and it's working very well for me! Great work guys 👍

codeversed avatar Feb 15 '18 14:02 codeversed