@@ -15,8 +15,6 @@ from inside a live tmux session.
15
15
- [ tmux]
16
16
- [ pip] - for this handbook's examples
17
17
18
- [ pip ] : https://pip.pypa.io/en/stable/installing/
19
-
20
18
[ tmux ] : https://tmux.github.io/
21
19
22
20
(installation)=
@@ -76,27 +74,19 @@ Session name `-s`: `foo`
76
74
77
75
:::
78
76
79
- ``` {eval-rst}
80
- .. todo:: Do a version of this with `sliderepl`_
81
-
82
- ```
83
-
84
77
``` console
85
-
86
78
$ python
87
-
88
79
```
89
80
90
81
For commandline completion, you can also use [ ptpython] .
91
82
92
83
``` console
93
-
94
84
$ pip install --user ptpython
95
- $ ptpython
96
-
97
85
```
98
86
99
- [ ptpython ] : https://github.com/prompt-toolkit/ptpython
87
+ ``` console
88
+ $ ptpython
89
+ ```
100
90
101
91
``` {module} libtmux
102
92
@@ -170,7 +160,6 @@ You may `session = server.get_by_id('$<yourId>')` to use the session object.
170
160
## Get session by name / other properties
171
161
172
162
``` python
173
- # Just for setting up the example:
174
163
>> > server.sessions[0 ].rename_session(' foo' )
175
164
Session($ 1 foo)
176
165
@@ -186,7 +175,6 @@ through Windows and Panes, respectively.
186
175
So you may now use:
187
176
188
177
``` python
189
- # Prepping the example:
190
178
>> > server.sessions[0 ].rename_session(' foo' )
191
179
Session($ 1 foo)
192
180
@@ -251,9 +239,8 @@ Window(@2 ...:ha in the bg, Session($1 ...))
251
239
Try to kill the window by the matching id ` @[0-9999] ` .
252
240
253
241
``` python
254
- # Setup
255
242
>> > session.new_window(attach = False , window_name = " ha in the bg" )
256
- Window(@ 1 ... :ha in the bg, Session($ 1 ... ))
243
+ Window(@ 2 ... :ha in the bg, Session($ 1 ... ))
257
244
258
245
>> > session.kill_window(' ha in the bg' )
259
246
```
@@ -387,11 +374,10 @@ sessions in the background. :)
387
374
:::{seealso}
388
375
389
376
If you want to dig deeper, check out {ref}` API ` , the code for
390
- and our [ test suite] (see {ref}` developing ` .)
377
+ and our [ test suite] (see {ref}` development ` .)
391
378
392
379
:::
393
380
394
- [ sliderepl ] : http://discorporate.us/projects/sliderepl/
395
381
[ workspacebuilder.py ] : https://github.com/tmux-python/libtmux/blob/master/libtmux/workspacebuilder.py
396
382
[ test suite ] : https://github.com/tmux-python/libtmux/tree/master/tests
397
- [ ptpython ] : https://github.com/jonathanslenders /ptpython
383
+ [ ptpython ] : https://github.com/prompt-toolkit /ptpython
0 commit comments