Browse Source

add default provider for search requests

PHP-GTK3
yggverse 4 months ago
parent
commit
f16a64ddb7
  1. 13
      src/Entity/Window/Tab/Address.php

13
src/Entity/Window/Tab/Address.php

@ -254,16 +254,23 @@ class Address @@ -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:

Loading…
Cancel
Save