Skip to content

Commit 15b1ae3

Browse files
committed
refactor(WorkspaceBuilder): Remove acronym / initialization of variables
1 parent 6581b38 commit 15b1ae3

File tree

6 files changed

+202
-181
lines changed

6 files changed

+202
-181
lines changed

src/tmuxp/cli/load.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ def set_layout_hook(session: Session, hook_name: str) -> None:
107107
session.cmd(*cmd)
108108

109109

110-
def load_plugins(sconf: t.Dict[str, t.Any]) -> t.List[t.Any]:
110+
def load_plugins(session_config: t.Dict[str, t.Any]) -> t.List[t.Any]:
111111
"""
112112
Load and return plugins in workspace
113113
"""
114114
plugins = []
115-
if "plugins" in sconf:
116-
for plugin in sconf["plugins"]:
115+
if "plugins" in session_config:
116+
for plugin in session_config["plugins"]:
117117
try:
118118
module_name = plugin.split(".")
119119
module_name = ".".join(module_name[:-1])
@@ -396,7 +396,9 @@ def load_workspace(
396396

397397
try: # load WorkspaceBuilder object for tmuxp workspace / tmux server
398398
builder = WorkspaceBuilder(
399-
sconf=expanded_workspace, plugins=load_plugins(expanded_workspace), server=t
399+
session_config=expanded_workspace,
400+
plugins=load_plugins(expanded_workspace),
401+
server=t,
400402
)
401403
except exc.EmptyWorkspaceException:
402404
tmuxp_echo("%s is empty or parsed no workspace data" % workspace_file)

0 commit comments

Comments
 (0)