feat: support showing only non-visible spaces (closes #1274)
This commit is contained in:
1 parent
3961f2a888
commit
51db0cb8e4
3 files changed
+6
No files matched your search
@@ -289,6 +289,9 @@
|
|||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Non-active apps" = "Non-active apps";
|
"Non-active apps" = "Non-active apps";
|
||||||
|
|
||||||
|
/* No comment provided by engineer. */
|
||||||
|
"Non-visible Spaces" = "Non-visible Spaces";
|
||||||
|
|
||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Not allowed" = "Not allowed";
|
"Not allowed" = "Not allowed";
|
||||||
|
|
||||||
|
|||||||
@@ -276,11 +276,13 @@ enum AppsToShowPreference: CaseIterable, MacroPreference {
|
|||||||
enum SpacesToShowPreference: CaseIterable, MacroPreference {
|
enum SpacesToShowPreference: CaseIterable, MacroPreference {
|
||||||
case all
|
case all
|
||||||
case visible
|
case visible
|
||||||
|
case nonVisible
|
||||||
|
|
||||||
var localizedString: LocalizedString {
|
var localizedString: LocalizedString {
|
||||||
switch self {
|
switch self {
|
||||||
case .all: return NSLocalizedString("All Spaces", comment: "")
|
case .all: return NSLocalizedString("All Spaces", comment: "")
|
||||||
case .visible: return NSLocalizedString("Visible Spaces", comment: "")
|
case .visible: return NSLocalizedString("Visible Spaces", comment: "")
|
||||||
|
case .nonVisible: return NSLocalizedString("Non-visible Spaces", comment: "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ class Windows {
|
|||||||
!(!(Preferences.showFullscreenWindows[App.app.shortcutIndex] != .hide) && window.isFullscreen) &&
|
!(!(Preferences.showFullscreenWindows[App.app.shortcutIndex] != .hide) && window.isFullscreen) &&
|
||||||
!(!(Preferences.showMinimizedWindows[App.app.shortcutIndex] != .hide) && window.isMinimized) &&
|
!(!(Preferences.showMinimizedWindows[App.app.shortcutIndex] != .hide) && window.isMinimized) &&
|
||||||
!(Preferences.spacesToShow[App.app.shortcutIndex] == .visible && !Spaces.visibleSpaces.contains { visibleSpace in window.spaceIds.contains { $0 == visibleSpace } }) &&
|
!(Preferences.spacesToShow[App.app.shortcutIndex] == .visible && !Spaces.visibleSpaces.contains { visibleSpace in window.spaceIds.contains { $0 == visibleSpace } }) &&
|
||||||
|
!(Preferences.spacesToShow[App.app.shortcutIndex] == .nonVisible && Spaces.visibleSpaces.contains { visibleSpace in window.spaceIds.contains { $0 == visibleSpace } }) &&
|
||||||
!(Preferences.screensToShow[App.app.shortcutIndex] == .showingAltTab && !window.isOnScreen(NSScreen.preferred)) &&
|
!(Preferences.screensToShow[App.app.shortcutIndex] == .showingAltTab && !window.isOnScreen(NSScreen.preferred)) &&
|
||||||
(Preferences.showTabsAsWindows || !window.isTabbed))
|
(Preferences.showTabsAsWindows || !window.isTabbed))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user