Skip to content

Commit 58cea21

Browse files
committed
feat: Allow passing sleep to commands
1 parent 0e9d4ac commit 58cea21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tmuxp/workspacebuilder.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
66
"""
77
import logging
8+
import time
89

910
from libtmux.exc import TmuxSessionExists
1011
from libtmux.pane import Pane
@@ -363,8 +364,10 @@ def get_pane_shell():
363364
suppress = True
364365

365366
enter = pconf.get("enter", True)
366-
367+
sleep = pconf.get("sleep", None)
367368
for cmd in pconf["shell_command"]:
369+
if sleep is not None:
370+
time.sleep(sleep)
368371
p.send_keys(cmd, suppress_history=suppress, enter=enter)
369372

370373
if "focus" in pconf and pconf["focus"]:

0 commit comments

Comments
 (0)