You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples.md
+60
Original file line number
Diff line number
Diff line change
@@ -332,6 +332,8 @@ This will add the `shell_command` to the bash history in the pane.
332
332
333
333
```{versionadded} 1.10.0b1
334
334
`enter: false` option. Pane-level support.
335
+
```
336
+
335
337
```{versionadded} 1.10.0b3
336
338
Support command-level skipping.
337
339
```
@@ -375,6 +377,64 @@ Omit sending {kbd}`enter` to key commands. Equivalent to
375
377
376
378
````
377
379
380
+
## Pausing commands
381
+
382
+
```{versionadded} 1.10.0b4
383
+
`sleep_before` and `sleep_after` options added. Pane and command-level support.
384
+
```
385
+
386
+
```{warning}
387
+
This will delay loading as it runs synchronously for each pane. In future version asynchronous support, (i.e. [`asyncio`](asyncio)) will speed up this up.
388
+
```
389
+
390
+
Omit sending {kbd}`enter` to key commands. Equivalent to having
391
+
a [`time.sleep`](time.sleep) before and after [`send_keys`](libtmux.Pane.send_keys).
392
+
393
+
This is especially useful for expensive commands where the terminal needs some breathing room (virtualenv, poetry, pipenv, sourcing a configuration, launching a tui app, etc).
0 commit comments