raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.23k stars 2.93k forks source link

[Quit Applications] Don't reset selection/scroll position after quitting app #13033

Open shroudedcode opened 2 months ago

shroudedcode commented 2 months ago

Extension

https://www.raycast.com/mackopes/quit-applications

Description

Currently, the "Quit Applications" extension resets the selection and scroll position every time an application is quit. This makes it inconvenient to go through the list with arrow keys and quit multiple apps in a "I don't need this... not this either... let's also quit that" fashion.

https://github.com/raycast/extensions/assets/29176678/2c9bcede-e9a6-4cf7-adb9-32fd865491e4

A better behavior would be for the selection and scroll position to be retained so that the Enter key can be pressed multiple times to quit applications that are below/above each other in the list.

Who will benefit from this feature?

Everyone using this extension to quit multiple applications in one go.

Anything else?

No response

raycastbot commented 2 months ago

Thank you for opening this issue!

🔔 @mackopes @jrnxf @3llomi @sxn @codesjedi you might want to have a look.

💡 Author and Contributors commands The author and contributors of `mackopes/quit-applications` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
codesjedi commented 2 months ago

I'm not sure if this doable with the current api, what do you think @pernielsentikaer?

shroudedcode commented 2 months ago

@codesjedi I just found out that the built-in "Switch Windows" command has behavior very similar to what I was thinking about. It has a "Quit Application" action that makes the relevant app disappear (albeit with a delay) without the selection or the scroll position being reset.

raycastbot commented 1 month ago

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

jrnxf commented 1 month ago

I fixed this issue in my PR @codesjedi @mackopes if you want to take a look: https://github.com/raycast/extensions/pull/13996