use crate::options::pane::common::constants::*;
use crate::{GetOptionTr, GetUserOption, TmuxCommand};
use std::borrow::Cow;
pub trait GetPaneOptionTr: GetOptionTr + GetUserOption {
#[cfg(feature = "tmux_3_0")]
fn allow_rename<'a, S>(target: Option<S>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::get_ext(target, ALLOW_RENAME)
}
#[cfg(feature = "tmux_3_0")]
fn alternate_screen<'a, S>(target: Option<S>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::get_ext(target, ALTERNATE_SCREEN)
}
#[cfg(feature = "tmux_3_0")]
fn remain_on_exit<'a, S>(target: Option<S>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::get_ext(target, REMAIN_ON_EXIT)
}
#[cfg(feature = "tmux_3_0")]
fn window_active_style<'a, S>(target: Option<S>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::get_ext(target, WINDOW_ACTIVE_STYLE)
}
#[cfg(feature = "tmux_3_0")]
fn window_style<'a, S>(target: Option<S>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::get_ext(target, WINDOW_STYLE)
}
#[cfg(feature = "tmux_3_2")]
fn synchronize_panes<'a, S>(target: Option<S>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::get_ext(target, SYNCHRONIZE_PANES)
}
}