Skip to content

Commit

Permalink
Add a binding for Ctrl-Z to memray tree
Browse files Browse the repository at this point in the history
CTRL+z to suspend isn't enabled by default, but we can add it with a
keybinding.

Signed-off-by: Pablo Galindo <[email protected]>
  • Loading branch information
pablogsal committed Apr 17, 2024
1 parent e75462b commit a8a6e46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def build_js_files(self):
"jinja2 >= 2.9",
"typing_extensions; python_version < '3.8.0'",
"rich >= 11.2.0",
"textual >= 0.41.0",
"textual >= 0.48.0",
]
docs_requires = [
"IPython",
Expand Down
1 change: 1 addition & 0 deletions src/memray/reporters/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ class TreeApp(App[None]):
Binding(
key="e", action="expand_linear_group", description="Expand linear group"
),
[Binding("ctrl+z", "suspend_process")],
]

CSS_PATH = "tree.css"
Expand Down

0 comments on commit a8a6e46

Please sign in to comment.