use crate::options::*;
#[cfg(feature = "tmux_2_9")]
use crate::WindowSize;
use crate::{StatusKeys, TmuxCommand};
use std::borrow::Cow;
pub trait SetWindowOptionTr: SetOptionTr + SetUserOption {
#[cfg(feature = "tmux_2_6")]
fn activity_action<'a, S>(target: Option<S>, activity: Option<Activity>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, ACTIVITY_ACTION, activity.map(|s| s.to_string()))
}
#[cfg(feature = "tmux_1_0")]
fn aggressive_resize<'a, S>(target: Option<S>, switch: Option<Switch>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, AGGRESSIVE_RESIZE, switch.map(|s| s.to_string()))
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_3_0")))]
fn allow_rename<'a, S>(target: Option<S>, switch: Option<Switch>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, ALLOW_RENAME, switch.map(|s| s.to_string()))
}
#[cfg(all(feature = "tmux_1_2", not(feature = "tmux_3_0")))]
fn alternate_screen<'a, S>(target: Option<S>, switch: Option<Switch>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, ALTERNATE_SCREEN, switch.map(|s| s.to_string()))
}
#[cfg(feature = "tmux_1_0")] fn automatic_rename<'a, S>(target: Option<S>, switch: Option<Switch>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, AUTOMATIC_RENAME, switch.map(|s| s.to_string()))
}
#[cfg(feature = "tmux_1_9")]
fn automatic_rename_format<'a, S, T>(target: Option<S>, format: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, AUTOMATIC_RENAME_FORMAT, format)
}
#[cfg(all(feature = "tmux_1_7", not(feature = "tmux_2_1")))]
fn c0_change_interval<'a, S>(target: Option<S>, interval: Option<usize>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, C0_CHANGE_INTERVAL, interval.map(|s| s.to_string()))
}
#[cfg(all(feature = "tmux_1_7", not(feature = "tmux_2_1")))]
fn c0_change_trigger<'a, S>(target: Option<S>, trigger: Option<usize>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, C0_CHANGE_TRIGGER, trigger.map(|s| s.to_string()))
}
#[cfg(feature = "tmux_1_0")]
fn clock_mode_colour<'a, S, T>(target: Option<S>, colour: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, CLOCK_MODE_COLOUR, colour)
}
#[cfg(feature = "tmux_1_0")]
fn clock_mode_style<'a, S>(
target: Option<S>,
clock_mode_style: Option<ClockModeStyle>,
) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(
target,
CLOCK_MODE_STYLE,
clock_mode_style.map(|s| s.to_string()),
)
}
#[cfg(all(feature = "tmux_1_0", not(feature = "tmux_2_9")))]
fn force_height<'a, S>(target: Option<S>, height: Option<usize>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, FORCE_HEIGHT, height.map(|s| s.to_string()))
}
#[cfg(all(feature = "tmux_1_0", not(feature = "tmux_2_9")))]
fn force_width<'a, S>(target: Option<S>, width: Option<usize>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, FORCE_WIDTH, width.map(|s| s.to_string()))
}
#[cfg(all(feature = "tmux_1_7", not(feature = "tmux_1_8")))]
fn layout_history_limit<'a, S>(target: Option<S>, limit: Option<usize>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, LAYOUT_HISTORY_LIMIT, limit.map(|s| s.to_string()))
}
#[cfg(feature = "tmux_1_0")]
fn main_pane_height<'a, S>(target: Option<S>, height: Option<usize>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, MAIN_PANE_HEIGHT, height.map(|s| s.to_string()))
}
#[cfg(feature = "tmux_1_0")]
fn main_pane_width<'a, S>(target: Option<S>, width: Option<usize>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, MAIN_PANE_WIDTH, width.map(|s| s.to_string()))
}
#[cfg(all(feature = "tmux_1_0", not(feature = "tmux_1_9")))]
fn mode_attr<'a, S, T>(target: Option<S>, attributes: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, MODE_ATTR, attributes)
}
#[cfg(all(feature = "tmux_1_0", not(feature = "tmux_1_9")))]
fn mode_bg<'a, S, T>(target: Option<S>, colour: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, MODE_BG, colour)
}
#[cfg(all(feature = "tmux_1_0", not(feature = "tmux_1_9")))]
fn mode_fg<'a, S, T>(target: Option<S>, colour: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, MODE_FG, colour)
}
#[cfg(feature = "tmux_1_0")]
fn mode_keys<'a, S>(target: Option<S>, mode_keys: Option<StatusKeys>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, MODE_KEYS, mode_keys.map(|s| s.to_string()))
}
#[cfg(all(feature = "tmux_1_0", not(feature = "tmux_2_1")))]
fn mode_mouse<'a, S>(target: Option<S>, mode_mouse: Option<ModeMouse>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, MODE_MOUSE, mode_mouse.map(|s| s.to_string()))
}
#[cfg(feature = "tmux_1_9")]
fn mode_style<'a, S, T>(target: Option<S>, style: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, MODE_STYLE, style)
}
#[cfg(feature = "tmux_1_0")]
fn monitor_activity<'a, S>(target: Option<S>, switch: Option<Switch>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, MONITOR_ACTIVITY, switch.map(|s| s.to_string()))
}
#[cfg(all(feature = "tmux_1_0", not(feature = "tmux_2_0")))]
fn monitor_content<'a, S, T>(target: Option<S>, match_string: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, MONITOR_CONTENT, match_string)
}
#[cfg(feature = "tmux_2_6")]
fn monitor_bell<'a, S>(target: Option<S>, switch: Option<Switch>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, MONITOR_BELL, switch.map(|s| s.to_string()))
}
#[cfg(feature = "tmux_1_4")]
fn monitor_silence<'a, S>(target: Option<S>, interval: Option<usize>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, MONITOR_SILENCE, interval.map(|s| s.to_string()))
}
#[cfg(feature = "tmux_1_4")]
fn other_pane_height<'a, S>(target: Option<S>, height: Option<usize>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, OTHER_PANE_HEIGHT, height.map(|s| s.to_string()))
}
#[cfg(feature = "tmux_1_4")]
fn other_pane_width<'a, S>(target: Option<S>, width: Option<usize>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, OTHER_PANE_WIDTH, width.map(|s| s.to_string()))
}
#[cfg(feature = "tmux_2_0")]
fn pane_active_border_style<'a, S, T>(target: Option<S>, style: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, PANE_ACTIVE_BORDER_STYLE, style)
}
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_9")))]
fn pane_active_border_bg<'a, S, T>(target: Option<S>, style: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, PANE_ACTIVE_BORDER_BG, style)
}
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_9")))]
fn pane_active_border_fg<'a, S, T>(target: Option<S>, style: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, PANE_ACTIVE_BORDER_FG, style)
}
#[cfg(feature = "tmux_1_6")]
fn pane_base_index<'a, S>(target: Option<S>, index: Option<usize>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, PANE_BASE_INDEX, index.map(|s| s.to_string()))
}
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_9")))]
fn pane_border_bg<'a, S, T>(target: Option<S>, style: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, PANE_BORDER_BG, style)
}
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_9")))]
fn pane_border_fg<'a, S, T>(target: Option<S>, style: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, PANE_BORDER_FG, style)
}
#[cfg(feature = "tmux_2_3")]
fn pane_border_format<'a, S, T>(target: Option<S>, format: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, PANE_BORDER_FORMAT, format)
}
#[cfg(feature = "tmux_2_3")]
fn pane_border_status<'a, S>(
target: Option<S>,
pane_border_status: Option<PaneBorderStatus>,
) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(
target,
PANE_BORDER_STATUS,
pane_border_status.map(|s| s.to_string()),
)
}
#[cfg(feature = "tmux_2_0")]
fn pane_border_style<'a, S, T>(target: Option<S>, style: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, PANE_BORDER_STYLE, style)
}
#[cfg(all(feature = "tmux_1_0", not(feature = "tmux_3_0")))]
fn remain_on_exit<'a, S>(target: Option<S>, switch: Option<Switch>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, REMAIN_ON_EXIT, switch.map(|s| s.to_string()))
}
#[cfg(all(feature = "tmux_1_2", not(feature = "tmux_3_2")))]
fn synchronize_panes<'a, S>(target: Option<S>, switch: Option<Switch>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, SYNCHRONIZE_PANES, switch.map(|s| s.to_string()))
}
#[cfg(all(feature = "tmux_1_0", not(feature = "tmux_2_2")))]
fn utf8<'a, S>(target: Option<S>, switch: Option<Switch>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, UTF8, switch.map(|s| s.to_string()))
}
#[cfg(all(feature = "tmux_2_1", not(feature = "tmux_3_0")))]
fn window_active_style<'a, S, T>(target: Option<S>, style: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_ACTIVE_STYLE, style)
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_1_9")))]
fn window_status_bell_attr<'a, S, T>(
target: Option<S>,
attributes: Option<T>,
) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_BELL_ATTR, attributes)
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_1_9")))]
fn window_status_bell_bg<'a, S, T>(target: Option<S>, colour: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_BELL_BG, colour)
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_1_9")))]
fn window_status_bell_fg<'a, S, T>(target: Option<S>, colour: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_BELL_FG, colour)
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_1_9")))]
fn window_status_content_attr<'a, S, T>(
target: Option<S>,
attributes: Option<T>,
) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_CONTENT_ATTR, attributes)
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_1_9")))]
fn window_status_content_bg<'a, S, T>(target: Option<S>, colour: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_CONTENT_BG, colour)
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_1_9")))]
fn window_status_content_fg<'a, S, T>(target: Option<S>, colour: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_CONTENT_FG, colour)
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_1_9")))]
fn window_status_activity_attr<'a, S, T>(
target: Option<S>,
attributes: Option<T>,
) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_ACTIVITY_ATTR, attributes)
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_1_9")))]
fn window_status_activity_bg<'a, S, T>(
target: Option<S>,
attributes: Option<T>,
) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_ACTIVITY_BG, attributes)
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_1_9")))]
fn window_status_activity_fg<'a, S, T>(
target: Option<S>,
attributes: Option<T>,
) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_ACTIVITY_FG, attributes)
}
#[cfg(all(feature = "tmux_1_0", not(feature = "tmux_1_9")))]
fn window_status_attr<'a, S, T>(target: Option<S>, attributes: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_ATTR, attributes)
}
#[cfg(all(feature = "tmux_1_0", not(feature = "tmux_1_9")))]
fn window_status_bg<'a, S, T>(target: Option<S>, colour: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_BG, colour)
}
#[cfg(all(feature = "tmux_1_0", not(feature = "tmux_1_9")))]
fn window_status_fg<'a, S, T>(target: Option<S>, colour: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_FG, colour)
}
#[cfg(all(feature = "tmux_1_0", not(feature = "tmux_1_9")))]
fn window_status_current_attr<'a, S, T>(
target: Option<S>,
attributes: Option<T>,
) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_CURRENT_ATTR, attributes)
}
#[cfg(all(feature = "tmux_1_0", not(feature = "tmux_1_9")))]
fn window_status_current_bg<'a, S, T>(target: Option<S>, colour: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_CURRENT_BG, colour)
}
#[cfg(all(feature = "tmux_1_0", not(feature = "tmux_1_9")))]
fn window_status_current_fg<'a, S, T>(target: Option<S>, colour: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_CURRENT_FG, colour)
}
#[cfg(all(feature = "tmux_1_3", not(feature = "tmux_1_6")))]
fn window_status_alert_attr<'a, S, T>(
target: Option<S>,
attributes: Option<S>,
) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_ALERT_ATTR, attributes)
}
#[cfg(all(feature = "tmux_1_3", not(feature = "tmux_1_6")))]
fn window_status_alert_bg<'a, S, T>(target: Option<S>, colour: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_ALEERT_BG, colour)
}
#[cfg(all(feature = "tmux_1_3", not(feature = "tmux_1_6")))]
fn window_status_alert_fg<'a, S, T>(target: Option<S>, colour: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_ALERT_FG, colour)
}
#[cfg(feature = "tmux_1_9")]
fn window_status_activity_style<'a, S, T>(
target: Option<T>,
style: Option<S>,
) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_ACTIVITY_STYLE, style)
}
#[cfg(feature = "tmux_1_9")]
fn window_status_bell_style<'a, S, T>(target: Option<S>, style: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_BELL_STYLE, style)
}
#[cfg(all(feature = "tmux_1_9", not(feature = "tmux_2_0")))]
fn window_status_content_style<'a, S, T>(target: Option<S>, style: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_CONTENT_STYLE, style)
}
#[cfg(feature = "tmux_1_2")]
fn window_status_current_format<'a, S, T>(
target: Option<T>,
string: Option<S>,
) -> TmuxCommand<'a>
where
T: Into<Cow<'a, str>>,
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_CURRENT_FORMAT, string)
}
#[cfg(all(feature = "tmux_1_8", not(feature = "tmux_1_9")))]
fn window_status_last_attr<'a, S, T>(
target: Option<S>,
attributes: Option<T>,
) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_LAST_ATTR, attributes)
}
#[cfg(all(feature = "tmux_1_8", not(feature = "tmux_1_9")))]
fn window_status_last_bg<'a, S, T>(target: Option<S>, colour: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_LAST_BG, colour)
}
#[cfg(all(feature = "tmux_1_8", not(feature = "tmux_1_9")))]
fn window_status_last_fg<'a, S, T>(target: Option<S>, colour: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_LAST_FG, colour)
}
#[cfg(feature = "tmux_1_9")]
fn window_status_current_style<'a, S, T>(target: Option<S>, style: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_CURRENT_STYLE, style)
}
#[cfg(feature = "tmux_1_2")]
fn window_status_format<'a, S, T>(target: Option<S>, string: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_FORMAT, string)
}
#[cfg(feature = "tmux_1_9")]
fn window_status_last_style<'a, S, T>(target: Option<S>, style: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_LAST_STYLE, style)
}
#[cfg(feature = "tmux_1_7")]
fn window_status_separator<'a, S, T>(target: Option<S>, string: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_SEPARATOR, string)
}
#[cfg(feature = "tmux_1_9")]
fn window_status_style<'a, S, T>(target: Option<S>, style: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STATUS_STYLE, style)
}
#[cfg(feature = "tmux_2_9")]
fn window_size<'a, S>(target: Option<S>, window_size: Option<WindowSize>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_SIZE, window_size.map(|s| s.to_string()))
}
#[cfg(all(feature = "tmux_1_2", not(feature = "tmux_1_6")))]
fn word_separators<'a, S, T>(target: Option<S>, string: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WORD_SEPARATORS, string)
}
#[cfg(all(feature = "tmux_2_1", not(feature = "tmux_3_0")))]
fn window_style<'a, S, T>(target: Option<S>, style: Option<T>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
{
Self::set_ext(target, WINDOW_STYLE, style)
}
#[cfg(feature = "tmux_1_7")]
fn wrap_search<'a, S>(target: Option<S>, switch: Option<Switch>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, WRAP_SEARCH, switch.map(|s| s.to_string()))
}
#[cfg(feature = "tmux_1_0")]
fn xterm_keys<'a, S>(target: Option<S>, switch: Option<Switch>) -> TmuxCommand<'a>
where
S: Into<Cow<'a, str>>,
{
Self::set_ext(target, XTERM_KEYS, switch.map(|s| s.to_string()))
}
}