Skip to content
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

An option to hide application with no window such as com.apple.finder #763

Closed
Matts966 opened this issue Jan 5, 2021 · 18 comments
Closed
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@Matts966
Copy link

Matts966 commented Jan 5, 2021

Thank you for this great project. I always enjoy tasks with this.

Is your feature suggestion related to a problem? Please describe.
I'm always frustrated when the com.apple.finder is there and selecting com.apple.finder creates a new window.

Describe the solution you'd like
It would be very nice to add another option that filters specified applications if they don't have any window.

Describe alternatives you've considered
It would be also nice to hide com.apple.finder without window by default.

@Matts966 Matts966 added the enhancement New feature or request label Jan 5, 2021
@MuhammedZakir
Copy link

#708 (comment):

Also, I'm not sure if I'm missing if it exists, but I can't easily tell how to hide the finder icon in the alt tab when there are no finder windows open

Preferences > Appearance, then:

image

@lwouis
Copy link
Owner

lwouis commented Jan 5, 2021

Hey @Matts966! Thanks for the suggestion!

@MuhammedZakir showed you how to disable all window-less apps. It seems you want to only remove Finder, since it's always there, and is kind of a unique app on macOS.

I think we could enable that by changing the Blocklist preference UI. Today it looks like:

image

We could replace the first list with a table UI, and have a dropdown on the right of the bundleID which says gives 3 options:

  • Hide all windows
  • Hide open windows
  • Hide when no open window

Hide all windows would be the default selection

@MuhammedZakir
Copy link

That will be great!

What will be the difference between Hide all windows and Hide open windows?

@lwouis
Copy link
Owner

lwouis commented Jan 5, 2021

It's hard to explain with words I noticed.

  • You have Open windows which are your apps open windows.
  • Then you have the "window"/icon that AltTab shows when an app is running, but it has no open window.

You may want to hide one, the other, or both, thus you need 3 options. We could name Hide all windows -> Hide everything maybe

@MuhammedZakir
Copy link

MuhammedZakir commented Jan 5, 2021

  • Then you have the "window"/icon that AltTab shows when an app is running, but it has no open window.

Isn't this what Hide when no open window is for? I'm confused! 😬

@Matts966
Copy link
Author

Matts966 commented Jan 5, 2021

Sorry for not noticing the option. With that option, my frustration almost disappears. Great project again :)

However, sometimes I want to kill applications with no window via this project. In that case, I feel the suggestion is great.

The change would be also nice in that we can unify the settings related to hiding applications.

@lwouis
Copy link
Owner

lwouis commented Jan 6, 2021

@MuhammedZakir Hide when no open window is a global flag. You turn these kind of things globally on or off in AltTab. Some people may want to see apps with no open windows, so they can quit them, or switch to them. But maybe they don't want to see Finder since it's always running, not like other apps. With my proposal above we would have per-app control over what is shown in AltTab, compare to global control.

@MuhammedZakir
Copy link

MuhammedZakir commented Jan 6, 2021

@lwouis: Sorry for not making it clear! I was talking about Hide when no open window option. You mentioned there would be 3 options -

  • Hide all windows
  • Hide open windows
  • Hide when no open window

Then, you explained Hide open windows is for running apps with no windows. But isn't that what the option Hide when no open window do? That's what I am confused about. In other words, what is the difference between Hide open windows and Hide when no open window?

@lwouis
Copy link
Owner

lwouis commented Jan 6, 2021

Sorry I was referring to:

image

When I said Hide when no open window earlier.

  • The current checkbox on the screenshot above is a global flag to hide all apps with no window.
  • The proposed option, which is part of 3 possible options, called Hide when no open window, is a flag to hide the specific app that matches the bundleID listed when it has no window

@MuhammedZakir
Copy link

MuhammedZakir commented Jan 7, 2021

😅 Sorry again! This is what I want to know:

  1. what is the difference between Hide open windows option and Hide when no open window option?

Again, sorry if it's a bother! Feel free to ignore this if you're busy! Just wanted to get a clear picture. :-)

@lwouis
Copy link
Owner

lwouis commented Jan 7, 2021

An app can be in 3 states:

  1. Not open
  2. Open, but no window is open for that app
  3. Open, and N windows are open for that app

I suggested 3 options:

  1. Hide all windows
  2. Hide open windows
  3. Hide when no open window
  • Option 1: nothing from that app is ever show in AltTab
  • Option 2: we don't show that app's windows. If it has no open window, then we show that app in AltTab so people can quit it for example
  • Option 3: we show that app's windows. If it has no open window, then we don't show that app in AltTab

@MuhammedZakir
Copy link

Thanks! Now, it's clear! 😁 👍

@MuhammedZakir
Copy link

MuhammedZakir commented Jan 10, 2021

A suggestion: I think "Show if no open window" is clearer than "Hide open windows".

P.S. "if" or "when"? Which one to use in option?

@Matts966
Copy link
Author

IMHO, in my experience, it's enough to add a simple dropdown menu with 3 options.

  1. Show all active apps as it is now.
  2. An option to hide all apps without any window as we already have now.
  3. Only hide Finder if there is no Finder window.

As I don't know other apps that can't be killed. (It's a special case, as far as I know.)

Still, the complete option is more extensible.

@lwouis
Copy link
Owner

lwouis commented Jan 11, 2021

As I don't know other apps that can't be killed

The use-case is beyond that. Finder is annoying some people, so that's one use-case, but other people have mentioned in other tickets that they use some app, and they keep it open because it has a long startup time, so they close all its windows and keep the process running. In that case, they complained that AltTab keeps showing the app to them. Doing per-app preference solves all of those use-cases at once.

@Matts966
Copy link
Author

I see it's important now.

Then a problem is the priority issue. The existing Hide applications without a window conflicts with the new option.

Maybe it's simple to move the existing option to the Blacklists tab and prioritize the new one over the existing option.

@lwouis
Copy link
Owner

lwouis commented Jan 11, 2021

Good point. I think we can relocate the global checkbox to the Blacklist tab. Then regarding priorities, i agree that per-app should override global

@lwouis
Copy link
Owner

lwouis commented Jun 10, 2022

Subsumed by #539

@lwouis lwouis closed this as completed Jun 10, 2022
@lwouis lwouis added the duplicate This issue or pull request already exists label Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants