summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@macaw.me>2020-11-14 15:17:16 +0800
committerFrederick Yin <fkfd@macaw.me>2020-11-14 15:17:16 +0800
commit50fd6639c6bc450030ea8e281f029e6df8cdcb0d (patch)
treed827e05524a2282b548c7d30fef77f9d96474e1e
parent8ded1d620948ab4984af49c928ee23e30454613d (diff)
Add tips on the default startup demo text
-rw-r--r--picross/about_pages.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/picross/about_pages.py b/picross/about_pages.py
index c0b7419..2f14dbc 100644
--- a/picross/about_pages.py
+++ b/picross/about_pages.py
@@ -31,6 +31,7 @@ def about_blank():
def about_home():
+ homepage_fp = Path(user_config_dir("picross")) / "home.gmi"
DEMO_TEXT = "\n".join(
[
"# Welcome to Picross Browser",
@@ -39,10 +40,13 @@ def about_home():
"=> gemini://gus.guru/ Gemini Universal Search engine",
"=> gemini://gemini.conman.org/test/torture/ Gemini client torture test",
"=> gemini://git.fkfd.me/cgi/picross/ Source code",
+ "",
+ "## Tips",
+ f"* Set a .gmi file as your home page by moving it to {homepage_fp}",
+ "* Use Ctrl+PgUp/PgDn to flip through tabs",
]
)
- homepage_fp = Path(user_config_dir("picross")) / "home.gmi"
try:
with open(homepage_fp) as homepage:
page = (homepage.read(), GEMINI_TYPE)