Skip to content

Commit

Permalink
Added convenience for opening new urls
Browse files Browse the repository at this point in the history
  • Loading branch information
blmayer committed Oct 15, 2023
1 parent 623dee3 commit c14c96b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

version="0.23.0"
version="0.24.0"

usage() {
echo "astro v$version: Browse the gemini web on the terminal."
Expand Down Expand Up @@ -327,6 +327,12 @@ pager() {
printf '\e[?25h\e[2KType url: '
stty echo icanon
read -r url <&1

# add gemini:// to begining if not (for convenience)
case "$url" in
"gemini://"*) ;;
*) url="gemini://$url" ;;
esac
return
;;
# FIXME: dont know how yet
Expand Down

0 comments on commit c14c96b

Please sign in to comment.