We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 501b9fc + 4dbac09 commit 4da7eaeCopy full SHA for 4da7eae
src/window.rs
@@ -360,7 +360,13 @@ impl Window {
360
}
361
fn open_omni(&self, v: &str) {
362
let url = Url::parse(v)
363
- .or_else(|_| Url::parse(&format!("gemini://geminispace.info/search?{}", v)));
+ .or_else(|_| {
364
+ if v.contains(".") && v.split(".").all(|s| s.chars().all(char::is_alphanumeric)) {
365
+ Url::parse(&format!("gemini://{}", v))
366
+ } else {
367
+ Url::parse(&format!("gemini://geminispace.info/search?{}", v))
368
+ }
369
+ });
370
match url {
371
Ok(url) => self.current_tab().spawn_open_url(url),
372
Err(e) => error!("Failed to open from omni bar"),
0 commit comments