@@ -63,6 +63,9 @@ def teamocil_to_tmuxp(sconf):
6363 for p in w ['panes' ]:
6464 if 'cmd' in p :
6565 p ['shell_command' ] = p .pop ('cmd' )
66+ if 'width' in p :
67+ # todo support for height/width
68+ p .pop ('width' )
6669 windowdict ['panes' ] = w ['panes' ]
6770
6871 if 'layout' in w :
@@ -548,7 +551,6 @@ class TeamocilLayoutsTest(unittest.TestCase):
548551 {
549552 'shell_command' : "echo 'bar again'" ,
550553 'focus' : True ,
551- 'width' : 50
552554 }
553555 ]
554556 }
@@ -562,8 +564,8 @@ class TeamocilLayoutsTest(unittest.TestCase):
562564 {
563565 'window_name' : 'foo' ,
564566 'shell_command_before' : [
565- 'echo first before filter' ,
566- 'echo second before filter' ,
567+ 'echo first before filter' ,
568+ 'echo second before filter' ,
567569 ],
568570 'shell_command_after' : [
569571 'echo first after filter' ,
@@ -609,9 +611,7 @@ class TeamocilLayoutsTest(unittest.TestCase):
609611 'target' : 'bottom-right'
610612 },
611613 {
612- 'shell_command' : [
613- "echo 'bar again'"
614- ],
614+ 'shell_command' : "echo 'bar again'" ,
615615 'focus' : True ,
616616 }
617617 ]
@@ -665,6 +665,21 @@ def test_config_to_dict(self):
665665 self .two_windows
666666 )
667667
668+ self .assertDictEqual (
669+ teamocil_to_tmuxp (
670+ self .teamocil_dict ['two-windows-with-filters' ],
671+ ),
672+ self .two_windows_with_filters
673+ )
674+
675+ self .assertDictEqual (
676+ teamocil_to_tmuxp (
677+ self .teamocil_dict ['two-windows-with-custom-command-options' ],
678+ ),
679+ self .two_windows_with_custom_command_options
680+ )
681+
682+
668683 ''' this configuration contains multiple sessions in a single file.
669684 tmuxp can split them into files, proceed?
670685 '''
0 commit comments