Skip to content

Kill process improvements - #231

Merged
mattisssa merged 8 commits into
raycast:mainfrom
rolandleth:kill-process-improvements
Oct 27, 2021
Merged

mattisssa merged 8 commits into
raycast:mainfrom
rolandleth:kill-process-improvements

Conversation

@rolandleth

Copy link
Copy Markdown
Contributor

Description

  • Improved CPU label.
  • Added reload action with shortcut.

Type of change

  • Bug fix / improvement for my extension

Screencast

2021-10-26 at 09 08 27

Checklist

@mattisssa mattisssa added the extension fix / improvement Label for PRs with extension's fix improvements label Oct 26, 2021
@tdwesten

Copy link
Copy Markdown
Contributor

@rolandleth Pls add also "PID:" before the pid :)

@rolandleth

Copy link
Copy Markdown
Contributor Author

Would adding parens (1234) be enough? The idea is that once you know what it is, you don't really need the label

I intentionally left it out, because it adds too much noise. I personally would've left "CPU" out as well, for the same reason 🤔 @thomaspaulmann what do you think about both (adding parens for pid and removing the word "CPU")?

@pernielsentikaer

Copy link
Copy Markdown
Contributor

Could also be a new preference to toggle "slim/compact" mode?

@tdwesten

Copy link
Copy Markdown
Contributor

@rolandleth yeah i think so :)

@rolandleth

Copy link
Copy Markdown
Contributor Author

Could also be a new preference to toggle "slim/compact" mode?

That’s an interesting take, I’ll do it like that 👍🏻

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Awesome addition @rolandleth 🚀

Could you please correct the two suggested so we can have a look at it 😄

Comment thread extensions/kill-process/package.json Resolved
Comment thread extensions/kill-process/package.json Resolved
@fturcheti

Copy link
Copy Markdown
Contributor

If List.Section had an accessoryTitle, it could be used as an header in these situations. Here, it could be set like this:

<List.Section title="Process" subtitle="PID" accessoryTitle="CPU">

@thomaspaulmann

Copy link
Copy Markdown
Member

Yeah having everything prefixed and parentheses everywhere doesn't look nice. We could keep it simple and remove it. I think for CPU the percentage is important. Otherwise it's hard to reason about the number.

The problem should go away as soon as we have tooltips. Then folks can hover and explore what numbers are.

@thomaspaulmann

Copy link
Copy Markdown
Member

@rolandleth I wouldn't add a pref for every little detail. Feels overkill to me. Instead pick what's the best default, this is what most users gonna see anyways.

@rolandleth

rolandleth commented Oct 26, 2021 •

Copy link
Copy Markdown
Contributor Author

If List.Section had an accessoryTitle, it could be used as an header in these situations. Here, it could be set like this:

<List.Section title="Process" subtitle="PID" accessoryTitle="CPU">

This would bring a lot of noise, at least in my opinion (I just tried it and it's looks so noisy).

@rolandleth I wouldn't add a pref for every little detail. Feels overkill to me.

True, but in this case, the pid is a piece of information that's mostly useless, but at the same time, it might be useful for some people.

Instead pick what's the best default, this is what most users gonna see anyways.

Totally agreed 👍

Based on the above and on the fact that we'll get tooltips at some point, I removed labels and only kept the preference to hide PIDs (reversed it to "show", because it defaults to false for the majority of people). It's clean, the info is rather obvious and you can show more of it, if you really need to (and I'd assume most don't).

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Another nice addition @rolandleth 💪

It's a VERY handy tool to have 💯 🚀

Ready to ship! 🚢 ⚓

@mattisssa
mattisssa merged commit e6720d7 into raycast:main Oct 27, 2021
@rolandleth
rolandleth deleted the kill-process-improvements branch October 27, 2021 12:54
loris added a commit to loris/extensions that referenced this pull request Nov 7, 2021
* main: (69 commits)
  Make encrypted Bear notes searchable (raycast#253)
  Twitter: Small improvements (raycast#262)
  Add rice score (raycast#207)
  Search npm Packages (raycast#243)
  Add Visual Studio Code Project Manager extension (raycast#216)
  Add Domainr Extension (raycast#181)
  envato extension (raycast#205)
  GitBook: [raycast#152] Update changelog
  Syncing from raycast-macos
  Add information about warnings for tos noncompliance (raycast#250)
  Add Rebrandly extension (raycast#51)
  Kill process improvements (raycast#231)
  Add google translate extension (raycast#201)
  Deepcast: Add PT-PT and PT-BR and replace deprecated EN with EN-US/EN-GB (raycast#242)
  Open With App: Force popToRoot after open action (raycast#245)
  Update pull_request_template.md
  [tower-extension] Add support for branch-names with slashes (raycast#246)
  Google Chrome history search (raycast#172)
  Add Swift Evolution extension (raycast#218)
  Add  Crypto Crawler to get the current coin price. (raycast#110)
  ...

# Conflicts:
#	extensions/safari/src/cloud-tabs.tsx
#	extensions/safari/src/reading-list.tsx
FezVrasta pushed a commit to FezVrasta/extensions that referenced this pull request Nov 24, 2021
* Kill Process: default values to preferences

* Improved CPU label

* Added reload action

* Kill Process: preferences to hide some information

* Kill Process: improved some labels and preferences

* Kill Process: improved some labels and preferences

* Kill Process: improved labels and preferences

* Kill Process: fixed shouldPrioritizeAppsWhenFiltering logic
colebemis added a commit to colebemis/raycast-extensions that referenced this pull request Nov 6, 2024