From bc97e7a81c775d178979fa700cc7b03729f57f56 Mon Sep 17 00:00:00 2001 From: Enyium <123484196+Enyium@users.noreply.github.com> Date: Sun, 4 May 2025 00:39:37 +0200 Subject: [PATCH] Made neglected `app.preferences()` available as phrase. - Implemented it for Opera. - `windows_and_tabs_mac.py` already implements it generically (which is correct for Opera). --- apps/opera/opera_win_linux.py | 3 +++ core/windows_and_tabs/window_management.talon | 1 + core/windows_and_tabs/windows_and_tabs_linux.py | 2 -- core/windows_and_tabs/windows_and_tabs_win.py | 2 -- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/opera/opera_win_linux.py b/apps/opera/opera_win_linux.py index 6fca6d326c..6043c95468 100644 --- a/apps/opera/opera_win_linux.py +++ b/apps/opera/opera_win_linux.py @@ -39,6 +39,9 @@ def tab_close_wrapper(): @ctx.action_class("app") class AppActions: + def preferences(): + actions.key("alt-p") + def tab_next(): actions.key("ctrl-pagedown") diff --git a/core/windows_and_tabs/window_management.talon b/core/windows_and_tabs/window_management.talon index ec49ddc5f2..9179d3dcbe 100644 --- a/core/windows_and_tabs/window_management.talon +++ b/core/windows_and_tabs/window_management.talon @@ -3,6 +3,7 @@ window next: app.window_next() window last: app.window_previous() window close: app.window_close() window hide: app.window_hide() +app (preferences | prefs | settings): app.preferences() focus : user.switcher_focus(running_applications) # following only works on windows. Can't figure out how to make it work for mac. No idea what the equivalent for linux would be. focus$: user.switcher_menu() diff --git a/core/windows_and_tabs/windows_and_tabs_linux.py b/core/windows_and_tabs/windows_and_tabs_linux.py index 8ca2bd75c4..78b10c1fff 100644 --- a/core/windows_and_tabs/windows_and_tabs_linux.py +++ b/core/windows_and_tabs/windows_and_tabs_linux.py @@ -10,8 +10,6 @@ @ctx.action_class("app") class AppActions: - # app.preferences() - def tab_close(): actions.key("ctrl-w") diff --git a/core/windows_and_tabs/windows_and_tabs_win.py b/core/windows_and_tabs/windows_and_tabs_win.py index f440246b43..2070ac2d58 100644 --- a/core/windows_and_tabs/windows_and_tabs_win.py +++ b/core/windows_and_tabs/windows_and_tabs_win.py @@ -10,8 +10,6 @@ @ctx.action_class("app") class AppActions: - # app.preferences() - def tab_close(): actions.key("ctrl-w")