Skip to content

Commit 9137bff

Browse files
committed
teamocil wip
1 parent eac2ff4 commit 9137bff

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

tmuxp/testsuite/test_config_teamocil.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ def teamocil_to_tmuxp(sconf):
4444

4545
windowdict = {}
4646

47+
windowdict['window_name'] = w['name']
48+
if 'clear' in w:
49+
windowdict['clear'] = w['clear']
50+
4751
if 'filters' in w:
4852
if 'before' in w['filters']:
4953
for b in w['filters']['before']:
@@ -52,6 +56,9 @@ def teamocil_to_tmuxp(sconf):
5256
for b in w['filters']['after']:
5357
windowdict['shell_command_after'] = w['filters']['after']
5458

59+
if 'splits' in w:
60+
w['panes'] = w.pop('splits')
61+
5562
if 'panes' in w:
5663
for p in w['panes']:
5764
if 'cmd' in p:
@@ -513,7 +520,7 @@ class TeamocilLayoutsTest(unittest.TestCase):
513520

514521
two_windows = \
515522
{
516-
'session_name': 'two-windows',
523+
'session_name': None,
517524
'windows': [
518525
{
519526
'window_name': 'foo',
@@ -539,9 +546,7 @@ class TeamocilLayoutsTest(unittest.TestCase):
539546
'target': 'bottom-right'
540547
},
541548
{
542-
'shell_command': [
543-
"echo 'bar again'"
544-
],
549+
'shell_command': "echo 'bar again'",
545550
'focus': True,
546551
'width': 50
547552
}
@@ -552,7 +557,7 @@ class TeamocilLayoutsTest(unittest.TestCase):
552557

553558
two_windows_with_filters = \
554559
{
555-
'session_name': 'two-windows-with-filters',
560+
'session_name': None,
556561
'windows': [
557562
{
558563
'window_name': 'foo',
@@ -578,7 +583,7 @@ class TeamocilLayoutsTest(unittest.TestCase):
578583

579584
two_windows_with_custom_command_options = \
580585
{
581-
'session_name': 'two-windows-with-custom-command-options',
586+
'session_name': None,
582587
'windows': [
583588
{
584589
'window_name': 'foo',

0 commit comments

Comments
 (0)