pub enum FocusMode {
SingleWindow,
ActivateApp,
}Expand description
Focus mode for terminal window activation.
Controls how windows are brought to the front on macOS.
Variants§
SingleWindow
Bring only the specific window to the front using Accessibility APIs.
This is the preferred mode as it doesn’t disturb other windows. Requires accessibility permissions on macOS.
Uses JXA + System Events AXRaise action (~140ms).
ActivateApp
Activate the entire application, bringing ALL its windows to the front.
This is the traditional behavior and doesn’t require accessibility permissions, but will raise all terminal windows above other apps.
Uses JXA + Application.activate() (~100ms).
Trait Implementations§
impl Copy for FocusMode
impl Eq for FocusMode
impl StructuralPartialEq for FocusMode
Auto Trait Implementations§
impl Freeze for FocusMode
impl RefUnwindSafe for FocusMode
impl Send for FocusMode
impl Sync for FocusMode
impl Unpin for FocusMode
impl UnwindSafe for FocusMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more