Skip to content

Commit 6dc7d57

Browse files
committed
docs(about_tmux): Fix formatting for aafig diagrams
1 parent c626953 commit 6dc7d57

File tree

1 file changed

+127
-114
lines changed

1 file changed

+127
-114
lines changed

docs/about_tmux.md

+127-114
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,26 @@ inside the text dimension. Inside tmux you can:
4040
| Window | Virtual Desktop or applications | A desktop that stores it own screen |
4141
| Pane | Application | Performs operations |
4242

43-
:::{aafig}
44-
+----------------------------------------------------------------+
45-
| +--------+--------+ +-----------------+ +-----------------+ |
46-
| | pane | pane | | pane | | pane | |
47-
| | | | | | | | |
48-
| | | | | | | | |
49-
| +--------+--------+ | | +-----------------+ |
50-
| | pane | pane | | | | pane | |
51-
| | | | | | | | |
52-
| | | | | | | | |
53-
| +--------+--------+ +-----------------+ +-----------------+ |
54-
| | window | | window | | window | |
55-
| \--------+--------/ \-----------------/ \-----------------/ |
56-
+----------------------------------------------------------------+
57-
| session |
58-
\----------------------------------------------------------------/
59-
:::
43+
```{eval-rst}
44+
.. aafig::
45+
:textual:
46+
47+
+----------------------------------------------------------------+
48+
| +--------+--------+ +-----------------+ +-----------------+ |
49+
| | pane | pane | | pane | | pane | |
50+
| | | | | | | | |
51+
| | | | | | | | |
52+
| +--------+--------+ | | +-----------------+ |
53+
| | pane | pane | | | | pane | |
54+
| | | | | | | | |
55+
| | | | | | | | |
56+
| +--------+--------+ +-----------------+ +-----------------+ |
57+
| | window | | window | | window | |
58+
| \--------+--------/ \-----------------/ \-----------------/ |
59+
+----------------------------------------------------------------+
60+
| session |
61+
\----------------------------------------------------------------/
62+
```
6063

6164
- 1 {term}`Server`.
6265

@@ -80,59 +83,66 @@ splitting up 1 terminal into multiple.
8083
One screen can be used to edit a file, and another may be used to
8184
`$ tail -F` a logfile.
8285

83-
:::{aafig}
84-
+--------+--------+
85-
| $ bash | $ bash |
86-
| | |
87-
| | |
88-
| | |
89-
| | |
90-
| | |
91-
| | |
92-
+--------+--------+
93-
:::
86+
```{eval-rst}
87+
.. aafig::
88+
89+
+--------+--------+
90+
| $ bash | $ bash |
91+
| | |
92+
| | |
93+
| | |
94+
| | |
95+
| | |
96+
| | |
97+
+--------+--------+
98+
```
9499

95-
:::{aafig}
96-
+--------+--------+
97-
| $ bash | $ bash |
98-
| | |
99-
| | |
100-
+--------+--------+
101-
| $ vim | $ bash |
102-
| | |
103-
| | |
104-
+--------+--------+
105-
:::
100+
```{eval-rst}
101+
.. aafig::
102+
103+
+--------+--------+
104+
| $ bash | $ bash |
105+
| | |
106+
| | |
107+
+--------+--------+
108+
| $ vim | $ bash |
109+
| | |
110+
| | |
111+
+--------+--------+
112+
```
106113

107114
tmux supports as manys terminals as you want.
108115

109-
:::{aafig}
110-
+---------+---------+
111-
| $ bash | $ bash |
112-
| | |
113-
| | | /-----------------\
114-
+---------+---------+ --> |'switch-window 2'|
115-
| $ bash | $ bash | \-----------------/
116-
| | | |
117-
| | | |
118-
+---------+---------+ |
119-
| '1:sys* 2:vim' | |
120-
+-------------------+ |
121-
/------------------------/
122-
|
123-
v
124-
+---------+---------+
125-
| $ vim |
126-
| |
127-
| |
128-
+-------------------+
129-
| $ bash | $ bash |
130-
| | |
131-
| | |
132-
+-------------------+
133-
| '1:sys 2:vim*' |
134-
+-------------------+
135-
:::
116+
```{eval-rst}
117+
.. aafig::
118+
:textual:
119+
120+
+---------+---------+
121+
| $ bash | $ bash |
122+
| | |
123+
| | | /-----------------\
124+
+---------+---------+ --> |'switch-window 2'|
125+
| $ bash | $ bash | \-----------------/
126+
| | | |
127+
| | | |
128+
+---------+---------+ |
129+
| '1:sys* 2:vim' | |
130+
+-------------------+ |
131+
/------------------------/
132+
|
133+
v
134+
+---------+---------+
135+
| $ vim |
136+
| |
137+
| |
138+
+-------------------+
139+
| $ bash | $ bash |
140+
| | |
141+
| | |
142+
+-------------------+
143+
| '1:sys 2:vim*' |
144+
+-------------------+
145+
```
136146

137147
You can switch between the windows you create.
138148

@@ -141,54 +151,57 @@ You can switch between the windows you create.
141151
You can leave tmux and all applications running (detach), log out, make
142152
a sandwich, and re-(attach), all applications are still running!
143153

144-
:::{aafig}
145-
+--------+--------+
146-
| $ bash | $ bash |
147-
| | |
148-
| | | /------------\
149-
+--------+--------+ --> | detach |
150-
| $ vim | $ bash | | 'Ctrl-b b' |
151-
| | | \------------/
152-
| | | |
153-
+--------+--------+ |
154-
/------------------/
155-
|
156-
v
157-
+-----------------------+
158-
| $ [screen detached] |
159-
| |
160-
| |
161-
| |
162-
| |
163-
| |
164-
| |
165-
+-----------------------+
166-
v
167-
|
168-
v
169-
+-----------------------+
170-
| $ [screen detached] |
171-
| $ tmux attach |
172-
| | /------------\
173-
| | --> | attaching |
174-
| | \------------/
175-
| | |
176-
| | |
177-
+-----------------------+ |
178-
|
179-
/---------------------------/
180-
|
181-
v
182-
+--------+--------+
183-
| $ bash | $ bash |
184-
| | |
185-
| | |
186-
+--------+--------+
187-
| $ vim | $ bash |
188-
| | |
189-
| | |
190-
+--------+--------+
191-
:::
154+
```{eval-rst}
155+
.. aafig::
156+
:textual:
157+
158+
+--------+--------+
159+
| $ bash | $ bash |
160+
| | |
161+
| | | /------------\
162+
+--------+--------+ --> | detach |
163+
| $ vim | $ bash | | 'Ctrl-b b' |
164+
| | | \------------/
165+
| | | |
166+
+--------+--------+ |
167+
/------------------/
168+
|
169+
v
170+
+-----------------------+
171+
| $ [screen detached] |
172+
| |
173+
| |
174+
| |
175+
| |
176+
| |
177+
| |
178+
+-----------------------+
179+
v
180+
|
181+
v
182+
+-----------------------+
183+
| $ [screen detached] |
184+
| $ tmux attach |
185+
| | /------------\
186+
| | --> | attaching |
187+
| | \------------/
188+
| | |
189+
| | |
190+
+-----------------------+ |
191+
|
192+
/---------------------------/
193+
|
194+
v
195+
+--------+--------+
196+
| $ bash | $ bash |
197+
| | |
198+
| | |
199+
+--------+--------+
200+
| $ vim | $ bash |
201+
| | |
202+
| | |
203+
+--------+--------+
204+
```
192205

193206
### Manage workflow
194207

0 commit comments

Comments
 (0)