Loader - tmuxp.workspace.loader#
Workspace hydration and loading for tmuxp.
- tmuxp.workspace.loader.expandshell(value)[source]#
- Resolve shell variables based on user’s - $HOMEand- env.
- tmuxp.workspace.loader.expand_cmd(p)[source]#
- Resolve shell variables and expand shorthands in a tmuxp config mapping. 
- tmuxp.workspace.loader.expand(workspace_dict, cwd=None, parent=None)[source]#
- Resolve workspace variables and expand shorthand style / inline properties. - This is necessary to keep the code in the - WorkspaceBuilderclean and also allow for neat, short-hand “sugarified” syntax.- As a simple example, internally, tmuxp expects that workspace options like - shell_commandare a list (array):- 'shell_command': ['htop'] - tmuxp workspace allow for it to be simply a string: - 'shell_command': 'htop' - ConfigReader will load JSON/YAML files into python dicts for you. - Return type:
- Parameters:
- Return type:
 
- tmuxp.workspace.loader.trickle(workspace_dict)[source]#
- Return a dict with “trickled down” / inherited workspace values. - This will only work if workspace has been expanded to full form with - loader.expand().- tmuxp allows certain commands to be default at the session, window level. shell_command_before trickles down and prepends the - shell_commandfor the pane.