-
Notifications
You must be signed in to change notification settings - Fork 109
/
Copy pathformats.py
97 lines (89 loc) · 1.96 KB
/
formats.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
"""Format variables for tmux objects.
libtmux.formats
~~~~~~~~~~~~~~~
For reference: https://github.com/tmux/tmux/blob/master/format.c
"""
import os
FORMAT_SEPARATOR = os.environ.get("LIBTMUX_TMUX_FORMAT_SEPARATOR", "␞")
SESSION_FORMATS = [
"session_name",
"session_windows",
"session_width",
"session_height",
"session_id",
"session_created",
"session_created_string",
"session_attached",
# "session_grouped", Apparently unused, mistake found while adding dataclasses
"session_group",
]
CLIENT_FORMATS = [
"client_cwd",
"client_height",
"client_width",
"client_tty",
"client_termname",
"client_created",
"client_created_string",
"client_activity",
"client_activity_string",
"client_prefix",
"client_utf8",
"client_readonly",
"client_session",
"client_last_session",
]
WINDOW_FORMATS = [
# format_window()
"window_id",
"window_name",
"window_width",
"window_height",
"window_layout",
"window_panes",
# format_winlink()
"window_index",
"window_flags",
"window_active",
"window_bell_flag",
"window_activity_flag",
"window_silence_flag",
]
PANE_FORMATS = [
"history_size",
"history_limit",
"history_bytes",
"pane_index",
"pane_width",
"pane_height",
# "pane_title", # removed in 3.1+
"pane_id",
"pane_active",
"pane_dead",
"pane_in_mode",
"pane_synchronized",
"pane_tty",
"pane_pid",
"pane_start_command",
"pane_start_path",
"pane_current_path",
"pane_current_command",
"cursor_x",
"cursor_y",
"scroll_region_upper",
"scroll_region_lower",
"saved_cursor_x",
"saved_cursor_y",
"alternate_on",
"alternate_saved_x",
"alternate_saved_y",
"cursor_flag",
"insert_flag",
"keypad_cursor_flag",
"keypad_flag",
"wrap_flag",
"mouse_standard_flag",
"mouse_button_flag",
"mouse_any_flag",
"mouse_utf8_flag",
]