switch search engine to marginalia

This commit is contained in:
stjet
2025-03-24 00:12:49 +00:00
parent 5325eaf195
commit 3994e2a1eb
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ Koxinga is a web browser supporting text and links.
- `u`: URL mode, where a URL can be inputted. Hit enter/return to go to that page. - `u`: URL mode, where a URL can be inputted. Hit enter/return to go to that page.
- `l`: Link mode. The page will now show numbers in front of any links. Input the number corresponding to the link to navigate to, then hit enter/return. - `l`: Link mode. The page will now show numbers in front of any links. Input the number corresponding to the link to navigate to, then hit enter/return.
- `s`: Search mode. Search engine is http://frogfind.de. Frogfind doesn't seem to use a valid HTTPS certificate yet. But all the other search engines block Koxinga, do not work without Javascript, or give horribly mangled invalid HTML. Such is the state of the world... - `s`: Search mode. Search engine is https://old-search.marginalia.nu
- `j`, `k` to scroll page. - `j`, `k` to scroll page.
- `0`: Go to top of page. - `0`: Go to top of page.
- `G`: Go to bottom of page. - `G`: Go to bottom of page.

View File

@@ -118,7 +118,7 @@ impl WindowLike for KoxingaBrowser {
Mode::Url | Mode::Search | Mode::Link => { Mode::Url | Mode::Search | Mode::Link => {
if key_press.is_enter() && self.input.len() > 0 { if key_press.is_enter() && self.input.len() > 0 {
let new_url = if self.mode == Mode::Search { let new_url = if self.mode == Mode::Search {
"http://frogfind.de/?q=".to_string() + &self.input "https://old-search.marginalia.nu/search?query=".to_string() + &self.input
} else if self.mode == Mode::Link { } else if self.mode == Mode::Link {
let link_index = self.input.parse::<usize>().unwrap(); let link_index = self.input.parse::<usize>().unwrap();
let url = self.url.as_ref().unwrap(); let url = self.url.as_ref().unwrap();