From 0ddc1a21a694e4fb5b54ebd4d4de2e903b0aea67 Mon Sep 17 00:00:00 2001 From: Soh Satoh <20023945+sohsatoh@users.noreply.github.com> Date: Wed, 1 Jan 2025 07:48:30 +0900 Subject: [PATCH] fix the comment (quick-terminal-space-behavior) --- .../QuickTerminal/QuickTerminalSpaceBehavior.swift | 4 ++-- src/config/Config.zig | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/macos/Sources/Features/QuickTerminal/QuickTerminalSpaceBehavior.swift b/macos/Sources/Features/QuickTerminal/QuickTerminalSpaceBehavior.swift index 18e283d7b..0561aaa18 100644 --- a/macos/Sources/Features/QuickTerminal/QuickTerminalSpaceBehavior.swift +++ b/macos/Sources/Features/QuickTerminal/QuickTerminalSpaceBehavior.swift @@ -26,10 +26,10 @@ enum QuickTerminalSpaceBehavior { switch (self) { case .move: - // We want this to be part of every space because it is a singleton. + // We want this to move the window to the active space. return NSWindow.CollectionBehavior([.canJoinAllSpaces] + commonBehavior) case .remain: - // We want this to move the window to the active space. + // We want this to remain the window in the current space. return NSWindow.CollectionBehavior([.moveToActiveSpace] + commonBehavior) } } diff --git a/src/config/Config.zig b/src/config/Config.zig index e792eba38..744dbcf7e 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -1568,11 +1568,10 @@ keybind: Keybinds = .{}, @"quick-terminal-autohide": bool = true, /// This configuration option determines the behavior of the quick terminal -/// when switching between spaces. If set to `move`, the quick terminal -/// will stay only in the space where it was originally opened and will not -/// follow when switching to another space. If set to `remain`, the quick terminal -/// will remain open and visible across all spaces, including after moving to -/// a different space. +/// when switching between spaces. If set to `move`, the quick terminal will +/// be moved to the space where the focused window is. If set to `remain`, +/// the quick terminal will stay only in the space where it was originally opened and +/// will not follow when switching to another space. @"quick-terminal-space-behavior": QuickTerminalSpaceBehavior = .move, /// Whether to enable shell integration auto-injection or not. Shell integration