use super::Variable;
use std::fmt;
#[derive(Debug)]
pub struct Formats {
pub separator: char,
pub variables: Vec<Variable>,
}
impl Default for Formats {
fn default() -> Self {
Formats {
separator: '\'',
variables: Vec::new(),
}
}
}
impl fmt::Display for Formats {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let output = self
.variables
.iter()
.map(|v| v.to_string())
.collect::<Vec<String>>()
.join(&self.separator.to_string());
write!(f, "{}", output)
}
}
impl Formats {
pub fn new() -> Self {
Default::default()
}
pub fn separator(&mut self, c: char) -> &mut Self {
self.separator = c;
self
}
pub fn push(&mut self, variable: Variable) {
self.variables.push(variable)
}
#[cfg(feature = "tmux_1_8")]
pub fn alternate_on(&mut self) -> &mut Self {
self.push(Variable::AlternateOn);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn alternate_saved_x(&mut self) -> &mut Self {
self.push(Variable::AlternateSavedX);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn alternate_saved_y(&mut self) -> &mut Self {
self.push(Variable::AlternateSavedY);
self
}
#[cfg(feature = "tmux_2_6")]
pub fn buffer_created(&mut self) -> &mut Self {
self.push(Variable::BufferCreated);
self
}
#[cfg(feature = "tmux_2_3")]
pub fn buffer_name(&mut self) -> &mut Self {
self.push(Variable::BufferName);
self
}
#[cfg(feature = "tmux_1_7")]
pub fn buffer_sample(&mut self) -> &mut Self {
self.push(Variable::BufferSample);
self
}
#[cfg(feature = "tmux_1_7")]
pub fn buffer_size(&mut self) -> &mut Self {
self.push(Variable::BufferSize);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn client_activity(&mut self) -> &mut Self {
self.push(Variable::ClientActivity);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn client_cell_height(&mut self) -> &mut Self {
self.push(Variable::ClientCellHeight);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn client_cell_width(&mut self) -> &mut Self {
self.push(Variable::ClientCellWidth);
self
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_2")))]
pub fn client_activity_string(&mut self) -> &mut Self {
self.push(Variable::ClientActivityString);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn client_created(&mut self) -> &mut Self {
self.push(Variable::ClientCreated);
self
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_2")))]
pub fn client_created_string(&mut self) -> &mut Self {
self.push(Variable::ClientCreatedString);
self
}
#[cfg(feature = "tmux_2_1")]
pub fn client_control_mode(&mut self) -> &mut Self {
self.push(Variable::ClientControlMode);
self
}
#[cfg(feature = "tmux_2_1")]
pub fn client_discarded(&mut self) -> &mut Self {
self.push(Variable::ClientDiscarded);
self
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_1_9")))]
pub fn client_cwd(&mut self) -> &mut Self {
self.push(Variable::ClientCwd);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn client_height(&mut self) -> &mut Self {
self.push(Variable::ClientHeight);
self
}
#[cfg(feature = "tmux_2_2")]
pub fn client_key_table(&mut self) -> &mut Self {
self.push(Variable::ClientKeyTable);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn client_last_session(&mut self) -> &mut Self {
self.push(Variable::ClientLastSession);
self
}
#[cfg(feature = "tmux_2_4")]
pub fn client_name(&mut self) -> &mut Self {
self.push(Variable::ClientName);
self
}
#[cfg(feature = "tmux_2_1")]
pub fn client_pid(&mut self) -> &mut Self {
self.push(Variable::ClientPid);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn client_prefix(&mut self) -> &mut Self {
self.push(Variable::ClientPrefix);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn client_readonly(&mut self) -> &mut Self {
self.push(Variable::ClientReadonly);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn client_session(&mut self) -> &mut Self {
self.push(Variable::ClientSession);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn client_termname(&mut self) -> &mut Self {
self.push(Variable::ClientTermname);
self
}
#[cfg(all(feature = "tmux_2_4", not(feature = "tmux_3_1")))]
pub fn client_termtype(&mut self) -> &mut Self {
self.push(Variable::ClientTermtype);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn client_tty(&mut self) -> &mut Self {
self.push(Variable::ClientTty);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn client_utf8(&mut self) -> &mut Self {
self.push(Variable::ClientUtf8);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn client_width(&mut self) -> &mut Self {
self.push(Variable::ClientWidth);
self
}
#[cfg(feature = "tmux_2_4")]
pub fn client_written(&mut self) -> &mut Self {
self.push(Variable::ClientWritten);
self
}
#[cfg(feature = "tmux_2_3")]
pub fn command_hooked(&mut self) -> &mut Self {
self.push(Variable::CommandHooked);
self
}
#[cfg(all(feature = "tmux_2_2", not(feature = "tmux_2_4")))]
pub fn command_name(&mut self) -> &mut Self {
self.push(Variable::CommandName);
self
}
#[cfg(feature = "tmux_2_4")]
pub fn command(&mut self) -> &mut Self {
self.push(Variable::Command);
self
}
#[cfg(feature = "tmux_2_3")]
pub fn command_list_name(&mut self) -> &mut Self {
self.push(Variable::CommandListName);
self
}
#[cfg(feature = "tmux_2_3")]
pub fn command_list_alias(&mut self) -> &mut Self {
self.push(Variable::CommandListAlias);
self
}
#[cfg(feature = "tmux_2_3")]
pub fn command_list_usage(&mut self) -> &mut Self {
self.push(Variable::CommandListUsage);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn cursor_flag(&mut self) -> &mut Self {
self.push(Variable::CursorFlag);
self
}
#[cfg(feature = "tmux_2_9")]
pub fn cursor_character(&mut self) -> &mut Self {
self.push(Variable::CursorCharacter);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn cursor_x(&mut self) -> &mut Self {
self.push(Variable::CursorX);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn cursor_y(&mut self) -> &mut Self {
self.push(Variable::CursorY);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn copy_cursor_line(&mut self) -> &mut Self {
self.push(Variable::CopyCursorLine);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn copy_cursor_word(&mut self) -> &mut Self {
self.push(Variable::CopyCursorWord);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn copy_cursor_x(&mut self) -> &mut Self {
self.push(Variable::CopyCursorX);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn copy_cursor_y(&mut self) -> &mut Self {
self.push(Variable::CopyCursorY);
self
}
#[cfg(feature = "tmux_3_2")]
pub fn current_file(&mut self) -> &mut Self {
self.push(Variable::CurrentFile);
self
}
#[cfg(feature = "tmux_1_7")]
pub fn histoty_bytes(&mut self) -> &mut Self {
self.push(Variable::HistotyBytes);
self
}
#[cfg(feature = "tmux_1_7")]
pub fn history_limit(&mut self) -> &mut Self {
self.push(Variable::HistotyLimit);
self
}
#[cfg(feature = "tmux_1_7")]
pub fn history_size(&mut self) -> &mut Self {
self.push(Variable::HistorySize);
self
}
#[cfg(feature = "tmux_2_4")]
pub fn hook(&mut self) -> &mut Self {
self.push(Variable::Hook);
self
}
#[cfg(feature = "tmux_2_4")]
pub fn hook_pane(&mut self) -> &mut Self {
self.push(Variable::HookPane);
self
}
#[cfg(feature = "tmux_2_4")]
pub fn hook_session(&mut self) -> &mut Self {
self.push(Variable::HookSession);
self
}
#[cfg(feature = "tmux_2_4")]
pub fn hook_session_name(&mut self) -> &mut Self {
self.push(Variable::HookSessionName);
self
}
#[cfg(feature = "tmux_2_4")]
pub fn hook_window(&mut self) -> &mut Self {
self.push(Variable::HookWindow);
self
}
#[cfg(feature = "tmux_2_4")]
pub fn hook_window_name(&mut self) -> &mut Self {
self.push(Variable::HookWindowName);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn host(&mut self) -> &mut Self {
self.push(Variable::Host);
self
}
#[cfg(feature = "tmux_1_9")]
pub fn host_short(&mut self) -> &mut Self {
self.push(Variable::HostShort);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn insert_flag(&mut self) -> &mut Self {
self.push(Variable::InsertFlag);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn keypad_cursor_flag(&mut self) -> &mut Self {
self.push(Variable::KeypadCursorFlag);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn keypad_flag(&mut self) -> &mut Self {
self.push(Variable::KeypadFlag);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn line(&mut self) -> &mut Self {
self.push(Variable::Line);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn mouse_any_flag(&mut self) -> &mut Self {
self.push(Variable::MouseAnyFlag);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn mouse_button_flag(&mut self) -> &mut Self {
self.push(Variable::MouseButtonFlag);
self
}
#[cfg(feature = "tmux_3_0")]
pub fn mouse_line(&mut self) -> &mut Self {
self.push(Variable::MouseLine);
self
}
#[cfg(feature = "tmux_3_0")]
pub fn sgr_line(&mut self) -> &mut Self {
self.push(Variable::MouseSgrFlag);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn mouse_standard_flag(&mut self) -> &mut Self {
self.push(Variable::MouseStandardFlag);
self
}
#[cfg(feature = "tmux_3_4")]
pub fn mouse_status_line(&mut self) -> &mut Self {
self.push(Variable::MouseStatusLine);
self
}
#[cfg(feature = "tmux_3_4")]
pub fn mouse_status_range(&mut self) -> &mut Self {
self.push(Variable::MouseStatusRange);
self
}
#[cfg(all(feature = "tmux_1_8", not(feature = "tmux_2_2"), feature = "tmux_3_0"))]
pub fn mouse_utf8_flag(&mut self) -> &mut Self {
self.push(Variable::MouseUtf8Flag);
self
}
#[cfg(feature = "tmux_2_4")]
pub fn mouse_all_flag(&mut self) -> &mut Self {
self.push(Variable::MouseAllFlag);
self
}
#[cfg(feature = "tmux_3_0")]
pub fn mouse_word(&mut self) -> &mut Self {
self.push(Variable::MouseWord);
self
}
#[cfg(feature = "tmux_3_0")]
pub fn mouse_x(&mut self) -> &mut Self {
self.push(Variable::MouseX);
self
}
#[cfg(feature = "tmux_3_0")]
pub fn mouse_y(&mut self) -> &mut Self {
self.push(Variable::MouseY);
self
}
#[cfg(feature = "tmux_3_0")]
pub fn origin_flag(&mut self) -> &mut Self {
self.push(Variable::OriginFlag);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn pane_active(&mut self) -> &mut Self {
self.push(Variable::PaneActive);
self
}
#[cfg(feature = "tmux_2_6")]
pub fn pane_at_bottom(&mut self) -> &mut Self {
self.push(Variable::PaneAtBottom);
self
}
#[cfg(feature = "tmux_2_6")]
pub fn pane_at_left(&mut self) -> &mut Self {
self.push(Variable::PaneAtLeft);
self
}
#[cfg(feature = "tmux_2_6")]
pub fn pane_at_right(&mut self) -> &mut Self {
self.push(Variable::PaneAtRight);
self
}
#[cfg(feature = "tmux_2_6")]
pub fn pane_at_top(&mut self) -> &mut Self {
self.push(Variable::PaneAtTop);
self
}
#[cfg(feature = "tmux_2_0")]
pub fn pane_bottom(&mut self) -> &mut Self {
self.push(Variable::PaneBottom);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn pane_current_command(&mut self) -> &mut Self {
self.push(Variable::PaneCurrentCommand);
self
}
#[cfg(feature = "tmux_1_7")]
pub fn pane_current_path(&mut self) -> &mut Self {
self.push(Variable::PaneCurrentPath);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn pane_dead(&mut self) -> &mut Self {
self.push(Variable::PaneDead);
self
}
#[cfg(feature = "tmux_2_0")]
pub fn pane_dead_status(&mut self) -> &mut Self {
self.push(Variable::PaneDeadStatus);
self
}
#[cfg(feature = "tmux_2_6")]
pub fn pane_format(&mut self) -> &mut Self {
self.push(Variable::PaneFormat);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn pane_height(&mut self) -> &mut Self {
self.push(Variable::PaneHeight);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn pane_id(&mut self) -> &mut Self {
self.push(Variable::PaneId);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn pane_in_mode(&mut self) -> &mut Self {
self.push(Variable::PaneInMode);
self
}
#[cfg(feature = "tmux_1_7")]
pub fn pane_index(&mut self) -> &mut Self {
self.push(Variable::PaneIndex);
self
}
#[cfg(feature = "tmux_2_0")]
pub fn pane_input_off(&mut self) -> &mut Self {
self.push(Variable::PaneInputOff);
self
}
#[cfg(feature = "tmux_2_0")]
pub fn pane_left(&mut self) -> &mut Self {
self.push(Variable::PaneLeft);
self
}
#[cfg(feature = "tmux_3_0")]
pub fn pane_marked(&mut self) -> &mut Self {
self.push(Variable::PaneMarked);
self
}
#[cfg(feature = "tmux_3_0")]
pub fn pane_marked_set(&mut self) -> &mut Self {
self.push(Variable::PaneMarkedSet);
self
}
#[cfg(feature = "tmux_2_5")]
pub fn pane_mode(&mut self) -> &mut Self {
self.push(Variable::PaneMode);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn pane_path(&mut self) -> &mut Self {
self.push(Variable::PanePath);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn pane_pid(&mut self) -> &mut Self {
self.push(Variable::PanePid);
self
}
#[cfg(feature = "tmux_2_6")]
pub fn pane_pipe(&mut self) -> &mut Self {
self.push(Variable::PanePipe);
self
}
#[cfg(feature = "tmux_2_0")]
pub fn pane_right(&mut self) -> &mut Self {
self.push(Variable::PaneRight);
self
}
#[cfg(feature = "tmux_2_5")]
pub fn pane_search_string(&mut self) -> &mut Self {
self.push(Variable::PaneSearchString);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn pane_start_command(&mut self) -> &mut Self {
self.push(Variable::PaneStartCommand);
self
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_0")))]
pub fn pane_start_path(&mut self) -> &mut Self {
self.push(Variable::PaneStartPath);
self
}
#[cfg(feature = "tmux_1_9")]
pub fn pane_synchronized(&mut self) -> &mut Self {
self.push(Variable::PaneSynchronized);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn pane_tabs(&mut self) -> &mut Self {
self.push(Variable::PaneTabs);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn pane_title(&mut self) -> &mut Self {
self.push(Variable::PaneTitle);
self
}
#[cfg(feature = "tmux_2_0")]
pub fn pane_top(&mut self) -> &mut Self {
self.push(Variable::PaneTop);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn pane_tty(&mut self) -> &mut Self {
self.push(Variable::PaneTty);
self
}
#[cfg(feature = "tmux_3_4")]
pub fn pane_unseen_changes(&mut self) -> &mut Self {
self.push(Variable::PaneUnseenChanges);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn pane_width(&mut self) -> &mut Self {
self.push(Variable::PaneWidth);
self
}
#[cfg(any(feature = "tmux_1_8", not(feature = "tmux_2_1")))]
pub fn saved_cursor_x(&mut self) -> &mut Self {
self.push(Variable::SavedCursorX);
self
}
#[cfg(any(feature = "tmux_1_8", not(feature = "tmux_2_1")))]
pub fn saved_cursor_y(&mut self) -> &mut Self {
self.push(Variable::SavedCursorY);
self
}
#[cfg(feature = "tmux_2_1")]
pub fn pid(&mut self) -> &mut Self {
self.push(Variable::Pid);
self
}
#[cfg(feature = "tmux_2_7")]
pub fn rectangle_toggle(&mut self) -> &mut Self {
self.push(Variable::RectangleToggle);
self
}
#[cfg(feature = "tmux_2_2")]
pub fn scroll_position(&mut self) -> &mut Self {
self.push(Variable::ScrollPosition);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn scroll_region_lower(&mut self) -> &mut Self {
self.push(Variable::ScrollRegionLower);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn scroll_region_upper(&mut self) -> &mut Self {
self.push(Variable::ScrollRegionUpper);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn selection_active(&mut self) -> &mut Self {
self.push(Variable::SelectionActive);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn selection_end_x(&mut self) -> &mut Self {
self.push(Variable::SelectionEndX);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn selection_end_y(&mut self) -> &mut Self {
self.push(Variable::SelectionEndY);
self
}
#[cfg(feature = "tmux_2_6")]
pub fn selection_present(&mut self) -> &mut Self {
self.push(Variable::SelectionPresent);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn selection_start_x(&mut self) -> &mut Self {
self.push(Variable::SelectionStartX);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn selection_start_y(&mut self) -> &mut Self {
self.push(Variable::SelectionStartY);
self
}
#[cfg(feature = "tmux_2_1")]
pub fn session_activity(&mut self) -> &mut Self {
self.push(Variable::SessionActivity);
self
}
#[cfg(all(feature = "tmux_2_1", not(feature = "tmux_2_2")))]
pub fn session_activity_string(&mut self) -> &mut Self {
self.push(Variable::SessionActivityString);
self
}
#[cfg(feature = "tmux_2_1")]
pub fn session_alerts(&mut self) -> &mut Self {
self.push(Variable::SessionAlerts);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn session_attached(&mut self) -> &mut Self {
self.push(Variable::SessionAttached);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn session_attached_list(&mut self) -> &mut Self {
self.push(Variable::SessionAttachedList);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn session_created(&mut self) -> &mut Self {
self.push(Variable::SessionCreated);
self
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_2")))]
pub fn session_created_string(&mut self) -> &mut Self {
self.push(Variable::SessionCreatedString);
self
}
#[cfg(feature = "tmux_2_6")]
pub fn session_format(&mut self) -> &mut Self {
self.push(Variable::SessionFormat);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn session_group(&mut self) -> &mut Self {
self.push(Variable::SessionGroup);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn session_group_attached(&mut self) -> &mut Self {
self.push(Variable::SessionGroupAttached);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn session_group_attached_list(&mut self) -> &mut Self {
self.push(Variable::SessionGroupAttachedList);
self
}
#[cfg(feature = "tmux_2_7")]
pub fn session_group_list(&mut self) -> &mut Self {
self.push(Variable::SessionGroupList);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn session_group_many_attached(&mut self) -> &mut Self {
self.push(Variable::SessionGroupManyAttached);
self
}
#[cfg(feature = "tmux_2_7")]
pub fn session_group_size(&mut self) -> &mut Self {
self.push(Variable::SessionGroupSize);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn session_grouped(&mut self) -> &mut Self {
self.push(Variable::SessionGrouped);
self
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_9")))]
pub fn session_height(&mut self) -> &mut Self {
self.push(Variable::SessionHeight);
self
}
#[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_9")))]
pub fn session_width(&mut self) -> &mut Self {
self.push(Variable::SessionWidth);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn session_id(&mut self) -> &mut Self {
self.push(Variable::SessionId);
self
}
#[cfg(feature = "tmux_2_1")]
pub fn session_last_attached(&mut self) -> &mut Self {
self.push(Variable::SessionLastAttached);
self
}
#[cfg(all(feature = "tmux_2_1", not(feature = "tmux_2_2")))]
pub fn session_last_attached_string(&mut self) -> &mut Self {
self.push(Variable::SessionLastAttachedString);
self
}
#[cfg(feature = "tmux_2_0")]
pub fn session_many_attached(&mut self) -> &mut Self {
self.push(Variable::SessionManyAttached);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn session_name(&mut self) -> &mut Self {
self.push(Variable::SessionName);
self
}
#[cfg(feature = "tmux_2_5")]
pub fn session_stack(&mut self) -> &mut Self {
self.push(Variable::SessionStack);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn session_windows(&mut self) -> &mut Self {
self.push(Variable::SessionWindows);
self
}
#[cfg(feature = "tmux_2_2")]
pub fn socket_path(&mut self) -> &mut Self {
self.push(Variable::SocketPath);
self
}
#[cfg(feature = "tmux_2_2")]
pub fn start_time(&mut self) -> &mut Self {
self.push(Variable::StartTime);
self
}
#[cfg(feature = "tmux_2_4")]
pub fn version(&mut self) -> &mut Self {
self.push(Variable::Version);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn window_active(&mut self) -> &mut Self {
self.push(Variable::WindowActive);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn window_active_clients(&mut self) -> &mut Self {
self.push(Variable::WindowActiveClients);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn window_active_clients_list(&mut self) -> &mut Self {
self.push(Variable::WindowActiveClientsList);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn window_active_sessions(&mut self) -> &mut Self {
self.push(Variable::WindowActiveSessions);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn window_active_sessions_list(&mut self) -> &mut Self {
self.push(Variable::WindowActiveSessionsList);
self
}
#[cfg(feature = "tmux_2_1")]
pub fn window_activity(&mut self) -> &mut Self {
self.push(Variable::WindowActivity);
self
}
#[cfg(all(feature = "tmux_2_1", not(feature = "tmux_2_2")))]
pub fn window_activity_string(&mut self) -> &mut Self {
self.push(Variable::SessionActivityString);
self
}
#[cfg(any(
all(feature = "tmux_1_9", not(feature = "tmux_2_2")),
feature = "tmux_2_3"
))]
pub fn window_activity_flag(&mut self) -> &mut Self {
self.push(Variable::WindowActivityFlag);
self
}
#[cfg(feature = "tmux_1_9")]
pub fn window_bell_flag(&mut self) -> &mut Self {
self.push(Variable::WindowBellFlag);
self
}
#[cfg(all(feature = "tmux_1_9", not(feature = "tmux_2_0")))]
pub fn window_content_flag(&mut self) -> &mut Self {
self.push(Variable::WindowContentFlag);
self
}
#[cfg(feature = "tmux_2_9")]
pub fn window_bigger(&mut self) -> &mut Self {
self.push(Variable::WindowBigger);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn window_cell_height(&mut self) -> &mut Self {
self.push(Variable::WindowCellHeight);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn window_cell_width(&mut self) -> &mut Self {
self.push(Variable::WindowCellWidth);
self
}
#[cfg(feature = "tmux_2_9")]
pub fn window_end_flag(&mut self) -> &mut Self {
self.push(Variable::WindowEndFlag);
self
}
#[cfg(all(feature = "tmux_1_7", not(feature = "tmux_2_6")))]
pub fn window_find_matches(&mut self) -> &mut Self {
self.push(Variable::WindowFindMatches);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn window_flags(&mut self) -> &mut Self {
self.push(Variable::WindowFlags);
self
}
#[cfg(feature = "tmux_3_2")]
pub fn window_raw_flags(&mut self) -> &mut Self {
self.push(Variable::WindowRawFlags);
self
}
#[cfg(feature = "tmux_2_6")]
pub fn window_format(&mut self) -> &mut Self {
self.push(Variable::WindowFormat);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn window_height(&mut self) -> &mut Self {
self.push(Variable::WindowHeight);
self
}
#[cfg(feature = "tmux_1_7")]
pub fn window_id(&mut self) -> &mut Self {
self.push(Variable::WindowId);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn window_index(&mut self) -> &mut Self {
self.push(Variable::WindowIndex);
self
}
#[cfg(feature = "tmux_2_0")]
pub fn window_last_flag(&mut self) -> &mut Self {
self.push(Variable::WindowLastFlag);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn window_layout(&mut self) -> &mut Self {
self.push(Variable::WindowLayout);
self
}
#[cfg(feature = "tmux_2_1")]
pub fn window_linked(&mut self) -> &mut Self {
self.push(Variable::WindowLinked);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn window_linked_sessions(&mut self) -> &mut Self {
self.push(Variable::WindowLinkedSessions);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn window_linked_sessions_list(&mut self) -> &mut Self {
self.push(Variable::WindowLinkedSessionsList);
self
}
#[cfg(feature = "tmux_3_1")]
pub fn window_marked_flag(&mut self) -> &mut Self {
self.push(Variable::WindowMarkedFlag);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn window_name(&mut self) -> &mut Self {
self.push(Variable::WindowName);
self
}
#[cfg(feature = "tmux_2_9")]
pub fn window_offset_x(&mut self) -> &mut Self {
self.push(Variable::WindowOffsetX);
self
}
#[cfg(feature = "tmux_2_9")]
pub fn window_offset_y(&mut self) -> &mut Self {
self.push(Variable::WindowOffsetY);
self
}
#[cfg(feature = "tmux_1_7")]
pub fn window_panes(&mut self) -> &mut Self {
self.push(Variable::WindowPanes);
self
}
#[cfg(feature = "tmux_1_9")]
pub fn window_silence_flag(&mut self) -> &mut Self {
self.push(Variable::WindowSilenceFlag);
self
}
#[cfg(feature = "tmux_2_5")]
pub fn window_stack_index(&mut self) -> &mut Self {
self.push(Variable::WindowStackIndex);
self
}
#[cfg(feature = "tmux_2_9")]
pub fn window_start_flag(&mut self) -> &mut Self {
self.push(Variable::WindowStartFlag);
self
}
#[cfg(feature = "tmux_2_2")]
pub fn window_visible_layout(&mut self) -> &mut Self {
self.push(Variable::WindowVisibleLayout);
self
}
#[cfg(feature = "tmux_1_6")]
pub fn window_width(&mut self) -> &mut Self {
self.push(Variable::WindowWidth);
self
}
#[cfg(feature = "tmux_2_0")]
pub fn window_zoomed_flag(&mut self) -> &mut Self {
self.push(Variable::WindowZoomedFlag);
self
}
#[cfg(feature = "tmux_1_8")]
pub fn wrap_flag(&mut self) -> &mut Self {
self.push(Variable::WrapFlag);
self
}
}