From f16a64ddb73f3be089add89ded697855a1909ec5 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 3 Jul 2024 18:15:52 +0300 Subject: [PATCH] add default provider for search requests --- src/Entity/Window/Tab/Address.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Entity/Window/Tab/Address.php b/src/Entity/Window/Tab/Address.php index b5711adc..7f625bfc 100644 --- a/src/Entity/Window/Tab/Address.php +++ b/src/Entity/Window/Tab/Address.php @@ -254,16 +254,23 @@ class Address $this->navbar->request->gtk->set_text( $address->get() ); - - $this->update(); } // Search request else { - // @TODO + $this->navbar->request->gtk->set_text( + sprintf( + 'gemini://tlgs.one/search?%s', // @TODO custom provider + urlencode( + $this->navbar->request->gtk->get_text() + ) + ) + ); } + $this->update(); + return; default: