fix the comment (quick-terminal-space-behavior)

This commit is contained in:
Soh Satoh
2025-01-01 07:48:30 +09:00
committed by Mitchell Hashimoto
parent 7bb3c31cee
commit 0ddc1a21a6
2 changed files with 6 additions and 7 deletions

View File

@ -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)
}
}

View File

@ -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