tmux_interface/formats/
formats.rs1use super::Variable;
2use std::fmt;
3
4#[derive(Debug)]
5pub struct Formats {
6 pub separator: char,
8 pub variables: Vec<Variable>,
9}
10
11impl Default for Formats {
12 fn default() -> Self {
13 Formats {
14 separator: '\'',
15 variables: Vec::new(),
16 }
17 }
18}
19
20impl fmt::Display for Formats {
21 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
22 let output = self
23 .variables
24 .iter()
25 .map(|v| v.to_string())
26 .collect::<Vec<String>>()
27 .join(&self.separator.to_string());
28 write!(f, "{}", output)
29 }
30}
31
32impl Formats {
33 pub fn new() -> Self {
34 Default::default()
35 }
36
37 pub fn separator(&mut self, c: char) -> &mut Self {
39 self.separator = c;
40 self
41 }
42
43 pub fn push(&mut self, variable: Variable) {
45 self.variables.push(variable)
46 }
47
48 #[cfg(feature = "tmux_1_8")]
56 pub fn alternate_on(&mut self) -> &mut Self {
57 self.push(Variable::AlternateOn);
58 self
59 }
60
61 #[cfg(feature = "tmux_1_8")]
63 pub fn alternate_saved_x(&mut self) -> &mut Self {
64 self.push(Variable::AlternateSavedX);
65 self
66 }
67
68 #[cfg(feature = "tmux_1_8")]
70 pub fn alternate_saved_y(&mut self) -> &mut Self {
71 self.push(Variable::AlternateSavedY);
72 self
73 }
74
75 #[cfg(feature = "tmux_2_6")]
79 pub fn buffer_created(&mut self) -> &mut Self {
80 self.push(Variable::BufferCreated);
81 self
82 }
83
84 #[cfg(feature = "tmux_2_3")]
86 pub fn buffer_name(&mut self) -> &mut Self {
87 self.push(Variable::BufferName);
88 self
89 }
90
91 #[cfg(feature = "tmux_1_7")]
93 pub fn buffer_sample(&mut self) -> &mut Self {
94 self.push(Variable::BufferSample);
95 self
96 }
97
98 #[cfg(feature = "tmux_1_7")]
100 pub fn buffer_size(&mut self) -> &mut Self {
101 self.push(Variable::BufferSize);
102 self
103 }
104
105 #[cfg(feature = "tmux_1_6")]
108 pub fn client_activity(&mut self) -> &mut Self {
109 self.push(Variable::ClientActivity);
110 self
111 }
112
113 #[cfg(feature = "tmux_3_1")]
115 pub fn client_cell_height(&mut self) -> &mut Self {
116 self.push(Variable::ClientCellHeight);
117 self
118 }
119
120 #[cfg(feature = "tmux_3_1")]
122 pub fn client_cell_width(&mut self) -> &mut Self {
123 self.push(Variable::ClientCellWidth);
124 self
125 }
126
127 #[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_2")))]
129 pub fn client_activity_string(&mut self) -> &mut Self {
130 self.push(Variable::ClientActivityString);
131 self
132 }
133
134 #[cfg(feature = "tmux_1_6")]
136 pub fn client_created(&mut self) -> &mut Self {
137 self.push(Variable::ClientCreated);
138 self
139 }
140
141 #[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_2")))]
143 pub fn client_created_string(&mut self) -> &mut Self {
144 self.push(Variable::ClientCreatedString);
145 self
146 }
147
148 #[cfg(feature = "tmux_2_1")]
150 pub fn client_control_mode(&mut self) -> &mut Self {
151 self.push(Variable::ClientControlMode);
152 self
153 }
154
155 #[cfg(feature = "tmux_2_1")]
157 pub fn client_discarded(&mut self) -> &mut Self {
158 self.push(Variable::ClientDiscarded);
159 self
160 }
161
162 #[cfg(all(feature = "tmux_1_6", not(feature = "tmux_1_9")))]
164 pub fn client_cwd(&mut self) -> &mut Self {
165 self.push(Variable::ClientCwd);
166 self
167 }
168
169 #[cfg(feature = "tmux_1_6")]
171 pub fn client_height(&mut self) -> &mut Self {
172 self.push(Variable::ClientHeight);
173 self
174 }
175
176 #[cfg(feature = "tmux_2_2")]
178 pub fn client_key_table(&mut self) -> &mut Self {
179 self.push(Variable::ClientKeyTable);
180 self
181 }
182
183 #[cfg(feature = "tmux_1_8")]
185 pub fn client_last_session(&mut self) -> &mut Self {
186 self.push(Variable::ClientLastSession);
187 self
188 }
189
190 #[cfg(feature = "tmux_2_4")]
192 pub fn client_name(&mut self) -> &mut Self {
193 self.push(Variable::ClientName);
194 self
195 }
196
197 #[cfg(feature = "tmux_2_1")]
199 pub fn client_pid(&mut self) -> &mut Self {
200 self.push(Variable::ClientPid);
201 self
202 }
203
204 #[cfg(feature = "tmux_1_8")]
206 pub fn client_prefix(&mut self) -> &mut Self {
207 self.push(Variable::ClientPrefix);
208 self
209 }
210
211 #[cfg(feature = "tmux_1_6")]
213 pub fn client_readonly(&mut self) -> &mut Self {
214 self.push(Variable::ClientReadonly);
215 self
216 }
217
218 #[cfg(feature = "tmux_1_8")]
220 pub fn client_session(&mut self) -> &mut Self {
221 self.push(Variable::ClientSession);
222 self
223 }
224
225 #[cfg(feature = "tmux_1_6")]
227 pub fn client_termname(&mut self) -> &mut Self {
228 self.push(Variable::ClientTermname);
229 self
230 }
231
232 #[cfg(all(feature = "tmux_2_4", not(feature = "tmux_3_1")))]
234 pub fn client_termtype(&mut self) -> &mut Self {
235 self.push(Variable::ClientTermtype);
236 self
237 }
238
239 #[cfg(feature = "tmux_1_6")]
241 pub fn client_tty(&mut self) -> &mut Self {
242 self.push(Variable::ClientTty);
243 self
244 }
245
246 #[cfg(feature = "tmux_1_6")]
248 pub fn client_utf8(&mut self) -> &mut Self {
249 self.push(Variable::ClientUtf8);
250 self
251 }
252
253 #[cfg(feature = "tmux_1_6")]
255 pub fn client_width(&mut self) -> &mut Self {
256 self.push(Variable::ClientWidth);
257 self
258 }
259
260 #[cfg(feature = "tmux_2_4")]
262 pub fn client_written(&mut self) -> &mut Self {
263 self.push(Variable::ClientWritten);
264 self
265 }
266
267 #[cfg(feature = "tmux_2_3")]
271 pub fn command_hooked(&mut self) -> &mut Self {
272 self.push(Variable::CommandHooked);
273 self
274 }
275
276 #[cfg(all(feature = "tmux_2_2", not(feature = "tmux_2_4")))]
278 pub fn command_name(&mut self) -> &mut Self {
279 self.push(Variable::CommandName);
280 self
281 }
282
283 #[cfg(feature = "tmux_2_4")]
285 pub fn command(&mut self) -> &mut Self {
286 self.push(Variable::Command);
287 self
288 }
289
290 #[cfg(feature = "tmux_2_3")]
292 pub fn command_list_name(&mut self) -> &mut Self {
293 self.push(Variable::CommandListName);
294 self
295 }
296
297 #[cfg(feature = "tmux_2_3")]
299 pub fn command_list_alias(&mut self) -> &mut Self {
300 self.push(Variable::CommandListAlias);
301 self
302 }
303
304 #[cfg(feature = "tmux_2_3")]
306 pub fn command_list_usage(&mut self) -> &mut Self {
307 self.push(Variable::CommandListUsage);
308 self
309 }
310
311 #[cfg(feature = "tmux_1_8")]
315 pub fn cursor_flag(&mut self) -> &mut Self {
316 self.push(Variable::CursorFlag);
317 self
318 }
319
320 #[cfg(feature = "tmux_2_9")]
322 pub fn cursor_character(&mut self) -> &mut Self {
323 self.push(Variable::CursorCharacter);
324 self
325 }
326
327 #[cfg(feature = "tmux_1_8")]
329 pub fn cursor_x(&mut self) -> &mut Self {
330 self.push(Variable::CursorX);
331 self
332 }
333
334 #[cfg(feature = "tmux_1_8")]
336 pub fn cursor_y(&mut self) -> &mut Self {
337 self.push(Variable::CursorY);
338 self
339 }
340
341 #[cfg(feature = "tmux_3_1")]
343 pub fn copy_cursor_line(&mut self) -> &mut Self {
344 self.push(Variable::CopyCursorLine);
345 self
346 }
347
348 #[cfg(feature = "tmux_3_1")]
350 pub fn copy_cursor_word(&mut self) -> &mut Self {
351 self.push(Variable::CopyCursorWord);
352 self
353 }
354
355 #[cfg(feature = "tmux_3_1")]
357 pub fn copy_cursor_x(&mut self) -> &mut Self {
358 self.push(Variable::CopyCursorX);
359 self
360 }
361
362 #[cfg(feature = "tmux_3_1")]
364 pub fn copy_cursor_y(&mut self) -> &mut Self {
365 self.push(Variable::CopyCursorY);
366 self
367 }
368
369 #[cfg(feature = "tmux_3_2")]
371 pub fn current_file(&mut self) -> &mut Self {
372 self.push(Variable::CurrentFile);
373 self
374 }
375
376 #[cfg(feature = "tmux_1_7")]
380 pub fn histoty_bytes(&mut self) -> &mut Self {
381 self.push(Variable::HistotyBytes);
382 self
383 }
384
385 #[cfg(feature = "tmux_1_7")]
387 pub fn history_limit(&mut self) -> &mut Self {
388 self.push(Variable::HistotyLimit);
389 self
390 }
391
392 #[cfg(feature = "tmux_1_7")]
394 pub fn history_size(&mut self) -> &mut Self {
395 self.push(Variable::HistorySize);
396 self
397 }
398
399 #[cfg(feature = "tmux_2_4")]
403 pub fn hook(&mut self) -> &mut Self {
404 self.push(Variable::Hook);
405 self
406 }
407
408 #[cfg(feature = "tmux_2_4")]
410 pub fn hook_pane(&mut self) -> &mut Self {
411 self.push(Variable::HookPane);
412 self
413 }
414
415 #[cfg(feature = "tmux_2_4")]
417 pub fn hook_session(&mut self) -> &mut Self {
418 self.push(Variable::HookSession);
419 self
420 }
421
422 #[cfg(feature = "tmux_2_4")]
424 pub fn hook_session_name(&mut self) -> &mut Self {
425 self.push(Variable::HookSessionName);
426 self
427 }
428
429 #[cfg(feature = "tmux_2_4")]
431 pub fn hook_window(&mut self) -> &mut Self {
432 self.push(Variable::HookWindow);
433 self
434 }
435
436 #[cfg(feature = "tmux_2_4")]
438 pub fn hook_window_name(&mut self) -> &mut Self {
439 self.push(Variable::HookWindowName);
440 self
441 }
442
443 #[cfg(feature = "tmux_1_6")]
447 pub fn host(&mut self) -> &mut Self {
448 self.push(Variable::Host);
449 self
450 }
451
452 #[cfg(feature = "tmux_1_9")]
454 pub fn host_short(&mut self) -> &mut Self {
455 self.push(Variable::HostShort);
456 self
457 }
458
459 #[cfg(feature = "tmux_1_8")]
461 pub fn insert_flag(&mut self) -> &mut Self {
462 self.push(Variable::InsertFlag);
463 self
464 }
465
466 #[cfg(feature = "tmux_1_8")]
468 pub fn keypad_cursor_flag(&mut self) -> &mut Self {
469 self.push(Variable::KeypadCursorFlag);
470 self
471 }
472
473 #[cfg(feature = "tmux_1_8")]
475 pub fn keypad_flag(&mut self) -> &mut Self {
476 self.push(Variable::KeypadFlag);
477 self
478 }
479
480 #[cfg(feature = "tmux_1_6")]
482 pub fn line(&mut self) -> &mut Self {
483 self.push(Variable::Line);
484 self
485 }
486
487 #[cfg(feature = "tmux_1_8")]
496 pub fn mouse_any_flag(&mut self) -> &mut Self {
497 self.push(Variable::MouseAnyFlag);
498 self
499 }
500
501 #[cfg(feature = "tmux_1_8")]
503 pub fn mouse_button_flag(&mut self) -> &mut Self {
504 self.push(Variable::MouseButtonFlag);
505 self
506 }
507
508 #[cfg(feature = "tmux_3_0")]
510 pub fn mouse_line(&mut self) -> &mut Self {
511 self.push(Variable::MouseLine);
512 self
513 }
514
515 #[cfg(feature = "tmux_3_0")]
517 pub fn sgr_line(&mut self) -> &mut Self {
518 self.push(Variable::MouseSgrFlag);
519 self
520 }
521
522 #[cfg(feature = "tmux_1_8")]
524 pub fn mouse_standard_flag(&mut self) -> &mut Self {
525 self.push(Variable::MouseStandardFlag);
526 self
527 }
528
529 #[cfg(feature = "tmux_3_4")]
531 pub fn mouse_status_line(&mut self) -> &mut Self {
532 self.push(Variable::MouseStatusLine);
533 self
534 }
535
536 #[cfg(feature = "tmux_3_4")]
538 pub fn mouse_status_range(&mut self) -> &mut Self {
539 self.push(Variable::MouseStatusRange);
540 self
541 }
542
543 #[cfg(all(feature = "tmux_1_8", not(feature = "tmux_2_2"), feature = "tmux_3_0"))]
545 pub fn mouse_utf8_flag(&mut self) -> &mut Self {
546 self.push(Variable::MouseUtf8Flag);
547 self
548 }
549
550 #[cfg(feature = "tmux_2_4")]
552 pub fn mouse_all_flag(&mut self) -> &mut Self {
553 self.push(Variable::MouseAllFlag);
554 self
555 }
556
557 #[cfg(feature = "tmux_3_0")]
559 pub fn mouse_word(&mut self) -> &mut Self {
560 self.push(Variable::MouseWord);
561 self
562 }
563
564 #[cfg(feature = "tmux_3_0")]
566 pub fn mouse_x(&mut self) -> &mut Self {
567 self.push(Variable::MouseX);
568 self
569 }
570
571 #[cfg(feature = "tmux_3_0")]
573 pub fn mouse_y(&mut self) -> &mut Self {
574 self.push(Variable::MouseY);
575 self
576 }
577
578 #[cfg(feature = "tmux_3_0")]
580 pub fn origin_flag(&mut self) -> &mut Self {
581 self.push(Variable::OriginFlag);
582 self
583 }
584
585 #[cfg(feature = "tmux_1_6")]
589 pub fn pane_active(&mut self) -> &mut Self {
590 self.push(Variable::PaneActive);
591 self
592 }
593
594 #[cfg(feature = "tmux_2_6")]
596 pub fn pane_at_bottom(&mut self) -> &mut Self {
597 self.push(Variable::PaneAtBottom);
598 self
599 }
600
601 #[cfg(feature = "tmux_2_6")]
603 pub fn pane_at_left(&mut self) -> &mut Self {
604 self.push(Variable::PaneAtLeft);
605 self
606 }
607
608 #[cfg(feature = "tmux_2_6")]
610 pub fn pane_at_right(&mut self) -> &mut Self {
611 self.push(Variable::PaneAtRight);
612 self
613 }
614
615 #[cfg(feature = "tmux_2_6")]
617 pub fn pane_at_top(&mut self) -> &mut Self {
618 self.push(Variable::PaneAtTop);
619 self
620 }
621
622 #[cfg(feature = "tmux_2_0")]
624 pub fn pane_bottom(&mut self) -> &mut Self {
625 self.push(Variable::PaneBottom);
626 self
627 }
628
629 #[cfg(feature = "tmux_1_8")]
631 pub fn pane_current_command(&mut self) -> &mut Self {
632 self.push(Variable::PaneCurrentCommand);
633 self
634 }
635
636 #[cfg(feature = "tmux_1_7")]
638 pub fn pane_current_path(&mut self) -> &mut Self {
639 self.push(Variable::PaneCurrentPath);
640 self
641 }
642
643 #[cfg(feature = "tmux_1_6")]
645 pub fn pane_dead(&mut self) -> &mut Self {
646 self.push(Variable::PaneDead);
647 self
648 }
649
650 #[cfg(feature = "tmux_2_0")]
652 pub fn pane_dead_status(&mut self) -> &mut Self {
653 self.push(Variable::PaneDeadStatus);
654 self
655 }
656
657 #[cfg(feature = "tmux_2_6")]
659 pub fn pane_format(&mut self) -> &mut Self {
660 self.push(Variable::PaneFormat);
661 self
662 }
663
664 #[cfg(feature = "tmux_1_6")]
666 pub fn pane_height(&mut self) -> &mut Self {
667 self.push(Variable::PaneHeight);
668 self
669 }
670
671 #[cfg(feature = "tmux_1_6")]
673 pub fn pane_id(&mut self) -> &mut Self {
674 self.push(Variable::PaneId);
675 self
676 }
677
678 #[cfg(feature = "tmux_1_8")]
680 pub fn pane_in_mode(&mut self) -> &mut Self {
681 self.push(Variable::PaneInMode);
682 self
683 }
684
685 #[cfg(feature = "tmux_1_7")]
687 pub fn pane_index(&mut self) -> &mut Self {
688 self.push(Variable::PaneIndex);
689 self
690 }
691
692 #[cfg(feature = "tmux_2_0")]
694 pub fn pane_input_off(&mut self) -> &mut Self {
695 self.push(Variable::PaneInputOff);
696 self
697 }
698
699 #[cfg(feature = "tmux_2_0")]
701 pub fn pane_left(&mut self) -> &mut Self {
702 self.push(Variable::PaneLeft);
703 self
704 }
705
706 #[cfg(feature = "tmux_3_0")]
708 pub fn pane_marked(&mut self) -> &mut Self {
709 self.push(Variable::PaneMarked);
710 self
711 }
712
713 #[cfg(feature = "tmux_3_0")]
715 pub fn pane_marked_set(&mut self) -> &mut Self {
716 self.push(Variable::PaneMarkedSet);
717 self
718 }
719
720 #[cfg(feature = "tmux_2_5")]
722 pub fn pane_mode(&mut self) -> &mut Self {
723 self.push(Variable::PaneMode);
724 self
725 }
726
727 #[cfg(feature = "tmux_3_1")]
729 pub fn pane_path(&mut self) -> &mut Self {
730 self.push(Variable::PanePath);
731 self
732 }
733
734 #[cfg(feature = "tmux_1_6")]
736 pub fn pane_pid(&mut self) -> &mut Self {
737 self.push(Variable::PanePid);
738 self
739 }
740
741 #[cfg(feature = "tmux_2_6")]
743 pub fn pane_pipe(&mut self) -> &mut Self {
744 self.push(Variable::PanePipe);
745 self
746 }
747
748 #[cfg(feature = "tmux_2_0")]
750 pub fn pane_right(&mut self) -> &mut Self {
751 self.push(Variable::PaneRight);
752 self
753 }
754
755 #[cfg(feature = "tmux_2_5")]
757 pub fn pane_search_string(&mut self) -> &mut Self {
758 self.push(Variable::PaneSearchString);
759 self
760 }
761
762 #[cfg(feature = "tmux_1_6")]
764 pub fn pane_start_command(&mut self) -> &mut Self {
765 self.push(Variable::PaneStartCommand);
766 self
767 }
768
769 #[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_0")))]
771 pub fn pane_start_path(&mut self) -> &mut Self {
772 self.push(Variable::PaneStartPath);
773 self
774 }
775
776 #[cfg(feature = "tmux_1_9")]
778 pub fn pane_synchronized(&mut self) -> &mut Self {
779 self.push(Variable::PaneSynchronized);
780 self
781 }
782
783 #[cfg(feature = "tmux_1_8")]
785 pub fn pane_tabs(&mut self) -> &mut Self {
786 self.push(Variable::PaneTabs);
787 self
788 }
789
790 #[cfg(feature = "tmux_1_6")]
792 pub fn pane_title(&mut self) -> &mut Self {
793 self.push(Variable::PaneTitle);
794 self
795 }
796
797 #[cfg(feature = "tmux_2_0")]
799 pub fn pane_top(&mut self) -> &mut Self {
800 self.push(Variable::PaneTop);
801 self
802 }
803
804 #[cfg(feature = "tmux_1_6")]
806 pub fn pane_tty(&mut self) -> &mut Self {
807 self.push(Variable::PaneTty);
808 self
809 }
810
811 #[cfg(feature = "tmux_3_4")]
813 pub fn pane_unseen_changes(&mut self) -> &mut Self {
814 self.push(Variable::PaneUnseenChanges);
815 self
816 }
817
818 #[cfg(feature = "tmux_1_6")]
820 pub fn pane_width(&mut self) -> &mut Self {
821 self.push(Variable::PaneWidth);
822 self
823 }
824
825 #[cfg(any(feature = "tmux_1_8", not(feature = "tmux_2_1")))]
827 pub fn saved_cursor_x(&mut self) -> &mut Self {
828 self.push(Variable::SavedCursorX);
829 self
830 }
831
832 #[cfg(any(feature = "tmux_1_8", not(feature = "tmux_2_1")))]
834 pub fn saved_cursor_y(&mut self) -> &mut Self {
835 self.push(Variable::SavedCursorY);
836 self
837 }
838
839 #[cfg(feature = "tmux_2_1")]
841 pub fn pid(&mut self) -> &mut Self {
842 self.push(Variable::Pid);
843 self
844 }
845
846 #[cfg(feature = "tmux_2_7")]
848 pub fn rectangle_toggle(&mut self) -> &mut Self {
849 self.push(Variable::RectangleToggle);
850 self
851 }
852
853 #[cfg(feature = "tmux_2_2")]
855 pub fn scroll_position(&mut self) -> &mut Self {
856 self.push(Variable::ScrollPosition);
857 self
858 }
859
860 #[cfg(feature = "tmux_1_8")]
862 pub fn scroll_region_lower(&mut self) -> &mut Self {
863 self.push(Variable::ScrollRegionLower);
864 self
865 }
866
867 #[cfg(feature = "tmux_1_8")]
869 pub fn scroll_region_upper(&mut self) -> &mut Self {
870 self.push(Variable::ScrollRegionUpper);
871 self
872 }
873
874 #[cfg(feature = "tmux_3_1")]
876 pub fn selection_active(&mut self) -> &mut Self {
877 self.push(Variable::SelectionActive);
878 self
879 }
880
881 #[cfg(feature = "tmux_3_1")]
883 pub fn selection_end_x(&mut self) -> &mut Self {
884 self.push(Variable::SelectionEndX);
885 self
886 }
887
888 #[cfg(feature = "tmux_3_1")]
890 pub fn selection_end_y(&mut self) -> &mut Self {
891 self.push(Variable::SelectionEndY);
892 self
893 }
894
895 #[cfg(feature = "tmux_2_6")]
897 pub fn selection_present(&mut self) -> &mut Self {
898 self.push(Variable::SelectionPresent);
899 self
900 }
901
902 #[cfg(feature = "tmux_3_1")]
904 pub fn selection_start_x(&mut self) -> &mut Self {
905 self.push(Variable::SelectionStartX);
906 self
907 }
908
909 #[cfg(feature = "tmux_3_1")]
911 pub fn selection_start_y(&mut self) -> &mut Self {
912 self.push(Variable::SelectionStartY);
913 self
914 }
915
916 #[cfg(feature = "tmux_2_1")]
919 pub fn session_activity(&mut self) -> &mut Self {
920 self.push(Variable::SessionActivity);
921 self
922 }
923
924 #[cfg(all(feature = "tmux_2_1", not(feature = "tmux_2_2")))]
926 pub fn session_activity_string(&mut self) -> &mut Self {
927 self.push(Variable::SessionActivityString);
928 self
929 }
930
931 #[cfg(feature = "tmux_2_1")]
933 pub fn session_alerts(&mut self) -> &mut Self {
934 self.push(Variable::SessionAlerts);
935 self
936 }
937
938 #[cfg(feature = "tmux_1_6")]
940 pub fn session_attached(&mut self) -> &mut Self {
941 self.push(Variable::SessionAttached);
942 self
943 }
944
945 #[cfg(feature = "tmux_3_1")]
947 pub fn session_attached_list(&mut self) -> &mut Self {
948 self.push(Variable::SessionAttachedList);
949 self
950 }
951
952 #[cfg(feature = "tmux_1_6")]
954 pub fn session_created(&mut self) -> &mut Self {
955 self.push(Variable::SessionCreated);
956 self
957 }
958
959 #[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_2")))]
961 pub fn session_created_string(&mut self) -> &mut Self {
962 self.push(Variable::SessionCreatedString);
963 self
964 }
965
966 #[cfg(feature = "tmux_2_6")]
968 pub fn session_format(&mut self) -> &mut Self {
969 self.push(Variable::SessionFormat);
970 self
971 }
972
973 #[cfg(feature = "tmux_1_6")]
975 pub fn session_group(&mut self) -> &mut Self {
976 self.push(Variable::SessionGroup);
977 self
978 }
979
980 #[cfg(feature = "tmux_3_1")]
982 pub fn session_group_attached(&mut self) -> &mut Self {
983 self.push(Variable::SessionGroupAttached);
984 self
985 }
986
987 #[cfg(feature = "tmux_3_1")]
989 pub fn session_group_attached_list(&mut self) -> &mut Self {
990 self.push(Variable::SessionGroupAttachedList);
991 self
992 }
993
994 #[cfg(feature = "tmux_2_7")]
996 pub fn session_group_list(&mut self) -> &mut Self {
997 self.push(Variable::SessionGroupList);
998 self
999 }
1000
1001 #[cfg(feature = "tmux_3_1")]
1003 pub fn session_group_many_attached(&mut self) -> &mut Self {
1004 self.push(Variable::SessionGroupManyAttached);
1005 self
1006 }
1007
1008 #[cfg(feature = "tmux_2_7")]
1010 pub fn session_group_size(&mut self) -> &mut Self {
1011 self.push(Variable::SessionGroupSize);
1012 self
1013 }
1014
1015 #[cfg(feature = "tmux_1_6")]
1017 pub fn session_grouped(&mut self) -> &mut Self {
1018 self.push(Variable::SessionGrouped);
1019 self
1020 }
1021
1022 #[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_9")))]
1024 pub fn session_height(&mut self) -> &mut Self {
1025 self.push(Variable::SessionHeight);
1026 self
1027 }
1028
1029 #[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_9")))]
1031 pub fn session_width(&mut self) -> &mut Self {
1032 self.push(Variable::SessionWidth);
1033 self
1034 }
1035
1036 #[cfg(feature = "tmux_1_8")]
1038 pub fn session_id(&mut self) -> &mut Self {
1039 self.push(Variable::SessionId);
1040 self
1041 }
1042
1043 #[cfg(feature = "tmux_2_1")]
1045 pub fn session_last_attached(&mut self) -> &mut Self {
1046 self.push(Variable::SessionLastAttached);
1047 self
1048 }
1049
1050 #[cfg(all(feature = "tmux_2_1", not(feature = "tmux_2_2")))]
1052 pub fn session_last_attached_string(&mut self) -> &mut Self {
1053 self.push(Variable::SessionLastAttachedString);
1054 self
1055 }
1056
1057 #[cfg(feature = "tmux_2_0")]
1059 pub fn session_many_attached(&mut self) -> &mut Self {
1060 self.push(Variable::SessionManyAttached);
1061 self
1062 }
1063
1064 #[cfg(feature = "tmux_1_6")]
1066 pub fn session_name(&mut self) -> &mut Self {
1067 self.push(Variable::SessionName);
1068 self
1069 }
1070
1071 #[cfg(feature = "tmux_2_5")]
1073 pub fn session_stack(&mut self) -> &mut Self {
1074 self.push(Variable::SessionStack);
1075 self
1076 }
1077
1078 #[cfg(feature = "tmux_1_6")]
1080 pub fn session_windows(&mut self) -> &mut Self {
1081 self.push(Variable::SessionWindows);
1082 self
1083 }
1084
1085 #[cfg(feature = "tmux_2_2")]
1087 pub fn socket_path(&mut self) -> &mut Self {
1088 self.push(Variable::SocketPath);
1089 self
1090 }
1091
1092 #[cfg(feature = "tmux_2_2")]
1094 pub fn start_time(&mut self) -> &mut Self {
1095 self.push(Variable::StartTime);
1096 self
1097 }
1098
1099 #[cfg(feature = "tmux_2_4")]
1101 pub fn version(&mut self) -> &mut Self {
1102 self.push(Variable::Version);
1103 self
1104 }
1105
1106 #[cfg(feature = "tmux_1_6")]
1110 pub fn window_active(&mut self) -> &mut Self {
1111 self.push(Variable::WindowActive);
1112 self
1113 }
1114
1115 #[cfg(feature = "tmux_3_1")]
1117 pub fn window_active_clients(&mut self) -> &mut Self {
1118 self.push(Variable::WindowActiveClients);
1119 self
1120 }
1121
1122 #[cfg(feature = "tmux_3_1")]
1124 pub fn window_active_clients_list(&mut self) -> &mut Self {
1125 self.push(Variable::WindowActiveClientsList);
1126 self
1127 }
1128
1129 #[cfg(feature = "tmux_3_1")]
1131 pub fn window_active_sessions(&mut self) -> &mut Self {
1132 self.push(Variable::WindowActiveSessions);
1133 self
1134 }
1135
1136 #[cfg(feature = "tmux_3_1")]
1138 pub fn window_active_sessions_list(&mut self) -> &mut Self {
1139 self.push(Variable::WindowActiveSessionsList);
1140 self
1141 }
1142
1143 #[cfg(feature = "tmux_2_1")]
1145 pub fn window_activity(&mut self) -> &mut Self {
1146 self.push(Variable::WindowActivity);
1147 self
1148 }
1149
1150 #[cfg(all(feature = "tmux_2_1", not(feature = "tmux_2_2")))]
1152 pub fn window_activity_string(&mut self) -> &mut Self {
1153 self.push(Variable::SessionActivityString);
1154 self
1155 }
1156
1157 #[cfg(any(
1159 all(feature = "tmux_1_9", not(feature = "tmux_2_2")),
1160 feature = "tmux_2_3"
1161 ))]
1162 pub fn window_activity_flag(&mut self) -> &mut Self {
1163 self.push(Variable::WindowActivityFlag);
1164 self
1165 }
1166
1167 #[cfg(feature = "tmux_1_9")]
1169 pub fn window_bell_flag(&mut self) -> &mut Self {
1170 self.push(Variable::WindowBellFlag);
1171 self
1172 }
1173
1174 #[cfg(all(feature = "tmux_1_9", not(feature = "tmux_2_0")))]
1176 pub fn window_content_flag(&mut self) -> &mut Self {
1177 self.push(Variable::WindowContentFlag);
1178 self
1179 }
1180
1181 #[cfg(feature = "tmux_2_9")]
1183 pub fn window_bigger(&mut self) -> &mut Self {
1184 self.push(Variable::WindowBigger);
1185 self
1186 }
1187
1188 #[cfg(feature = "tmux_3_1")]
1190 pub fn window_cell_height(&mut self) -> &mut Self {
1191 self.push(Variable::WindowCellHeight);
1192 self
1193 }
1194
1195 #[cfg(feature = "tmux_3_1")]
1197 pub fn window_cell_width(&mut self) -> &mut Self {
1198 self.push(Variable::WindowCellWidth);
1199 self
1200 }
1201
1202 #[cfg(feature = "tmux_2_9")]
1204 pub fn window_end_flag(&mut self) -> &mut Self {
1205 self.push(Variable::WindowEndFlag);
1206 self
1207 }
1208
1209 #[cfg(all(feature = "tmux_1_7", not(feature = "tmux_2_6")))]
1211 pub fn window_find_matches(&mut self) -> &mut Self {
1212 self.push(Variable::WindowFindMatches);
1213 self
1214 }
1215
1216 #[cfg(feature = "tmux_1_6")]
1218 pub fn window_flags(&mut self) -> &mut Self {
1219 self.push(Variable::WindowFlags);
1220 self
1221 }
1222
1223 #[cfg(feature = "tmux_3_2")]
1226 pub fn window_raw_flags(&mut self) -> &mut Self {
1227 self.push(Variable::WindowRawFlags);
1228 self
1229 }
1230
1231 #[cfg(feature = "tmux_2_6")]
1233 pub fn window_format(&mut self) -> &mut Self {
1234 self.push(Variable::WindowFormat);
1235 self
1236 }
1237
1238 #[cfg(feature = "tmux_1_6")]
1240 pub fn window_height(&mut self) -> &mut Self {
1241 self.push(Variable::WindowHeight);
1242 self
1243 }
1244
1245 #[cfg(feature = "tmux_1_7")]
1247 pub fn window_id(&mut self) -> &mut Self {
1248 self.push(Variable::WindowId);
1249 self
1250 }
1251
1252 #[cfg(feature = "tmux_1_6")]
1254 pub fn window_index(&mut self) -> &mut Self {
1255 self.push(Variable::WindowIndex);
1256 self
1257 }
1258
1259 #[cfg(feature = "tmux_2_0")]
1261 pub fn window_last_flag(&mut self) -> &mut Self {
1262 self.push(Variable::WindowLastFlag);
1263 self
1264 }
1265
1266 #[cfg(feature = "tmux_1_6")]
1268 pub fn window_layout(&mut self) -> &mut Self {
1269 self.push(Variable::WindowLayout);
1270 self
1271 }
1272
1273 #[cfg(feature = "tmux_2_1")]
1275 pub fn window_linked(&mut self) -> &mut Self {
1276 self.push(Variable::WindowLinked);
1277 self
1278 }
1279
1280 #[cfg(feature = "tmux_3_1")]
1282 pub fn window_linked_sessions(&mut self) -> &mut Self {
1283 self.push(Variable::WindowLinkedSessions);
1284 self
1285 }
1286
1287 #[cfg(feature = "tmux_3_1")]
1289 pub fn window_linked_sessions_list(&mut self) -> &mut Self {
1290 self.push(Variable::WindowLinkedSessionsList);
1291 self
1292 }
1293
1294 #[cfg(feature = "tmux_3_1")]
1296 pub fn window_marked_flag(&mut self) -> &mut Self {
1297 self.push(Variable::WindowMarkedFlag);
1298 self
1299 }
1300
1301 #[cfg(feature = "tmux_1_6")]
1303 pub fn window_name(&mut self) -> &mut Self {
1304 self.push(Variable::WindowName);
1305 self
1306 }
1307
1308 #[cfg(feature = "tmux_2_9")]
1310 pub fn window_offset_x(&mut self) -> &mut Self {
1311 self.push(Variable::WindowOffsetX);
1312 self
1313 }
1314
1315 #[cfg(feature = "tmux_2_9")]
1317 pub fn window_offset_y(&mut self) -> &mut Self {
1318 self.push(Variable::WindowOffsetY);
1319 self
1320 }
1321
1322 #[cfg(feature = "tmux_1_7")]
1324 pub fn window_panes(&mut self) -> &mut Self {
1325 self.push(Variable::WindowPanes);
1326 self
1327 }
1328
1329 #[cfg(feature = "tmux_1_9")]
1331 pub fn window_silence_flag(&mut self) -> &mut Self {
1332 self.push(Variable::WindowSilenceFlag);
1333 self
1334 }
1335
1336 #[cfg(feature = "tmux_2_5")]
1338 pub fn window_stack_index(&mut self) -> &mut Self {
1339 self.push(Variable::WindowStackIndex);
1340 self
1341 }
1342
1343 #[cfg(feature = "tmux_2_9")]
1345 pub fn window_start_flag(&mut self) -> &mut Self {
1346 self.push(Variable::WindowStartFlag);
1347 self
1348 }
1349
1350 #[cfg(feature = "tmux_2_2")]
1352 pub fn window_visible_layout(&mut self) -> &mut Self {
1353 self.push(Variable::WindowVisibleLayout);
1354 self
1355 }
1356
1357 #[cfg(feature = "tmux_1_6")]
1359 pub fn window_width(&mut self) -> &mut Self {
1360 self.push(Variable::WindowWidth);
1361 self
1362 }
1363
1364 #[cfg(feature = "tmux_2_0")]
1366 pub fn window_zoomed_flag(&mut self) -> &mut Self {
1367 self.push(Variable::WindowZoomedFlag);
1368 self
1369 }
1370
1371 #[cfg(feature = "tmux_1_8")]
1373 pub fn wrap_flag(&mut self) -> &mut Self {
1374 self.push(Variable::WrapFlag);
1375 self
1376 }
1377}