aboutsummaryrefslogtreecommitdiff
path: root/QSThingsPlugin/Actions/SearchThingsAction.m
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-09-10 22:48:37 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-09-10 22:48:37 +0200
commit1613c951d49e6d85aff52f312d57fa087b35c079 (patch)
treec31b74c56f32c3a60e628c187b6f7c236fffe36e /QSThingsPlugin/Actions/SearchThingsAction.m
parent7cf393095282077b0bbae3046826b67f4f20a8eb (diff)
Move things URL calls to a helper
Diffstat (limited to 'QSThingsPlugin/Actions/SearchThingsAction.m')
-rw-r--r--QSThingsPlugin/Actions/SearchThingsAction.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/QSThingsPlugin/Actions/SearchThingsAction.m b/QSThingsPlugin/Actions/SearchThingsAction.m
index 9b042b3..9f941e7 100644
--- a/QSThingsPlugin/Actions/SearchThingsAction.m
+++ b/QSThingsPlugin/Actions/SearchThingsAction.m
@@ -9,10 +9,8 @@ NS_ASSUME_NONNULL_BEGIN
NSString *contents = [directObject displayName];
if (contents) {
- NSString *urlString = [NSString stringWithFormat:@"things:///search?query=%@", contents];
- NSURL *url = [NSURL URLWithString:urlString];
-
- [[NSWorkspace sharedWorkspace] openURL:url];
+ NSDictionary *parameters = @{@"query": contents};
+ [ThingsHelper callRoute:ThingsURLRouteSearch withParameters:parameters];
} else {
NSLog(@"Could not get the text of the Things object.");
}