forked from solderpunk/AV-98
Compare commits
2 Commits
fa0793ef16
...
cf459e5295
Author | SHA1 | Date |
---|---|---|
Ploum | cf459e5295 | |
Ploum | c86a377d98 |
|
@ -7,6 +7,8 @@
|
|||
- ansicat: added support for <video> HTML-element
|
||||
- ansicat: if chafa fails to load an image, fallback to timg is available
|
||||
- offpunk: add list autocompletion to "tour"
|
||||
- offpunk: removed "blackbox", which has not been used nor maintained
|
||||
- offpunk: "gus" was broken, it is functionnal again
|
||||
|
||||
## 2.1 - December 15th 2023
|
||||
- freshly updated gemtext/rss links are highlighted ("new_link" theme option)
|
||||
|
|
16
offpunk.py
16
offpunk.py
|
@ -922,7 +922,8 @@ Use 'ls -l' to see URLs."""
|
|||
if not line:
|
||||
print("What?")
|
||||
return
|
||||
self._go_to_url(urllib.parse.urlunparse("gemini","geminispace.info","/search","",line,""))
|
||||
search = line.replace(" ","%20")
|
||||
self._go_to_url("gemini://geminispace.info/search?%s"%search)
|
||||
|
||||
def do_history(self, *args):
|
||||
"""Display history."""
|
||||
|
@ -1610,19 +1611,6 @@ The following lists cannot be removed or frozen but can be edited with "list edi
|
|||
else:
|
||||
cmd.Cmd.do_help(self, arg)
|
||||
|
||||
### Flight recorder
|
||||
def do_blackbox(self, *args):
|
||||
"""Display contents of flight recorder, showing statistics for the
|
||||
current gemini browsing session."""
|
||||
lines = []
|
||||
# Compute flight time
|
||||
now = time.time()
|
||||
delta = now - self.log["start_time"]
|
||||
hours, remainder = divmod(delta, 3600)
|
||||
minutes, seconds = divmod(remainder, 60)
|
||||
# Assemble lines
|
||||
lines.append(("Patrol duration", "%02d:%02d:%02d" % (hours, minutes, seconds)))
|
||||
|
||||
def do_sync(self, line):
|
||||
"""Synchronize all bookmarks lists and URLs from the to_fetch list.
|
||||
- New elements in pages in subscribed lists will be added to tour
|
||||
|
|
Loading…
Reference in New Issue