File tree Expand file tree Collapse file tree 5 files changed +66
-8
lines changed Expand file tree Collapse file tree 5 files changed +66
-8
lines changed Original file line number Diff line number Diff line change @@ -331,8 +331,9 @@ This will add the `shell_command` to the bash history in the pane.
331
331
## Skip command execution
332
332
333
333
``` {versionadded} 1.10.0b1
334
- `enter: false` option. This is only available at the pane (not command level)
335
- until [#751](https://github.com/tmux-python/tmuxp/issues/751) is published.
334
+ `enter: false` option. Pane-level support.
335
+ ```{versionadded} 1.10.0b3
336
+ Support command-level skipping.
336
337
```
337
338
338
339
Omit sending {kbd}` enter ` to key commands. Equivalent to
@@ -356,6 +357,25 @@ Omit sending {kbd}`enter` to key commands. Equivalent to
356
357
357
358
````
358
359
360
+ ```` {tab} YAML (pane-level)
361
+
362
+ ```{literalinclude} ../examples/skip-send-pane-level.yaml
363
+ :language: yaml
364
+
365
+ ```
366
+
367
+ ````
368
+
369
+ ```` {tab} JSON (pane-level)
370
+
371
+ ```{literalinclude} ../examples/skip-send-pane-level.json
372
+ :language: json
373
+
374
+ ```
375
+
376
+ ````
377
+
378
+
359
379
## Window Index
360
380
361
381
You can specify a window's index using the ` window_index ` property. Windows
Original file line number Diff line number Diff line change
1
+ {
2
+ "session_name" : " Skip all pane commands" ,
3
+ "windows" : [
4
+ {
5
+ "panes" : [
6
+ {
7
+ "shell_command" : " echo \" ___$((1 + 3))___\" " ,
8
+ "enter" : false
9
+ },
10
+ {
11
+ "shell_command" : [
12
+ " echo \" ___$((1 + 3))___\"\\ ;" ,
13
+ " echo \" ___$((1 + 3))___\" "
14
+ ],
15
+ "enter" : false
16
+ }
17
+ ]
18
+ }
19
+ ]
20
+ }
Original file line number Diff line number Diff line change
1
+ session_name : Skip all pane commands
2
+ windows :
3
+ - panes :
4
+ - shell_command : echo "___$((1 + 3))___"
5
+ enter : false
6
+ - shell_command :
7
+ - echo "___$((1 + 3))___"\;
8
+ - echo "___$((1 + 3))___"
9
+ enter : false
Original file line number Diff line number Diff line change 1
1
{
2
- "session_name" : " Should not execute " ,
2
+ "session_name" : " Skip command execution (command-level) " ,
3
3
"windows" : [
4
4
{
5
5
"panes" : [
6
6
{
7
- "shell_command" : " echo \" ___$((1 + 3))___\" " ,
8
- "enter" : false
7
+ "shell_command" : [
8
+ " echo \" ___$((11 + 1))___\" " ,
9
+ {
10
+ "cmd" : " echo \" ___$((1 + 3))___\" " ,
11
+ "enter" : false
12
+ }
13
+ ]
9
14
}
10
15
]
11
16
}
Original file line number Diff line number Diff line change 1
- session_name : Should not execute
1
+ session_name : Skip command execution (command-level)
2
2
windows :
3
3
- panes :
4
- - shell_command : echo "___$((1 + 3))___"
5
- enter : false
4
+ - shell_command :
5
+ # You can see this
6
+ - echo "___$((11 + 1))___"
7
+ # This is skipped
8
+ - cmd : echo "___$((1 + 3))___"
9
+ enter : false
You can’t perform that action at this time.
0 commit comments