Skip to content

Commit fb25241

Browse files
committed
feat: Allow passing sleep to commands
1 parent 091cb56 commit fb25241

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tmuxp/workspacebuilder.py

+5-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,11 @@ 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)
371+
368372
p.send_keys(cmd["cmd"], suppress_history=suppress, enter=enter)
369373

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

0 commit comments

Comments
 (0)