aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-07-17 11:34:15 +0000
committerFuwn <[email protected]>2022-07-17 11:34:15 +0000
commitecafc617b5693762822937cf09d330569fc01a2b (patch)
treea675f4062d5768c1a3981b6b9b441d692fb56a9d /src/input.rs
parentdocs(README.md): expanding gif link (diff)
downloadsydney-ecafc617b5693762822937cf09d330569fc01a2b.tar.xz
sydney-ecafc617b5693762822937cf09d330569fc01a2b.zip
feat(input.rs): add help command
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/input.rs b/src/input.rs
index 1e8e083..54065ac 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -170,7 +170,6 @@ fn handle_editing_input(
})
.unwrap(),
);
-
app.make_request();
} else {
app.error = Some("No URL provided for open command".to_string());
@@ -187,6 +186,10 @@ fn handle_editing_input(
app.make_request();
},
+ Command::Help => {
+ app.set_url(Url::parse("gemini://gem.rest/projects/sydney.gmi").unwrap());
+ app.make_request();
+ }
}
app.input_mode = Mode::Normal;