From 5ef8bf30e8a79c54fa7faa62e27214401a4839cc Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Sun, 30 Nov 2025 17:38:19 -0600 Subject: [PATCH] Added command action wiring --- src/core/widgets/category_widget.py | 7 ++++++- src/core/widgets/search_command_widget.py | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/core/widgets/category_widget.py b/src/core/widgets/category_widget.py index f672c54..6ed957e 100644 --- a/src/core/widgets/category_widget.py +++ b/src/core/widgets/category_widget.py @@ -113,7 +113,12 @@ class CategoryWidget(Gtk.Grid): def _do_exec(self, widget, _command): command = _command.split("%")[0] - subprocess.Popen(command.split(), start_new_session=True, stdout=None, stderr=None) + subprocess.Popen( + command.split(), + start_new_session = True, + stdout = None, + stderr = None + ) def clear_children(self, app_list: [] = []): children = self.get_children() diff --git a/src/core/widgets/search_command_widget.py b/src/core/widgets/search_command_widget.py index 4110605..03a668d 100644 --- a/src/core/widgets/search_command_widget.py +++ b/src/core/widgets/search_command_widget.py @@ -82,5 +82,12 @@ class SearchCommandWidget(Gtk.SearchEntry): def _handle_enter(self, widget): if self.mode != "/c": return + subprocess.Popen( + self.request.split(), + start_new_session = True, + stdout = None, + stderr = None + ) + def query_all_categories(self): event_system.emit("query-all-categories", (self.request,))