Visually distinguish non-Gemini links from Gemini links.

This commit is contained in:
Solderpunk 2020-08-30 17:23:36 +02:00
parent 969d3c1b18
commit da8b6cc7f3
1 changed files with 2 additions and 1 deletions

View File

@ -864,7 +864,8 @@ Slow internet connection? Use 'set timeout' to be more patient.""")
subprocess.call(shlex.split(cmd_str % self.idx_filename))
def _format_geminiitem(self, index, gi, url=False):
line = "[%d] %s" % (index, gi.name or gi.url)
protocol = "" if gi.scheme == "gemini" else " %s" % gi.scheme
line = "[%d%s] %s" % (index, protocol, gi.name or gi.url)
if gi.name and url:
line += " (%s)" % gi.url
return line