From 3e7e7879bcb8caac422f543ee67d8ccfba6ec63c Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 1 Jun 2026 12:59:52 -0700 Subject: [PATCH] Remove some default system commands that aren't particular useful for this app. --- borgmatic/actions/browse/app.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/borgmatic/actions/browse/app.py b/borgmatic/actions/browse/app.py index fd270ba4..30894d22 100644 --- a/borgmatic/actions/browse/app.py +++ b/borgmatic/actions/browse/app.py @@ -43,6 +43,18 @@ class Browse_app(textual.app.App): super().__init__() + def get_system_commands(self, screen): # pragma: no cover + ''' + Remove the screenshot system command because it produces broken screenshots. (Emoji + weirdness, etc.) Also remove minimize and maximize because they don't accomplish much with + out particular layout. + ''' + yield from ( + command + for command in super().get_system_commands(screen) + if command.title not in {'Screenshot', 'Minimize', 'Maximize'} + ) + def compose(self): ''' Compose a UI consisting of: