From 9974dab934cb8301f99faac3d12094c22165a765 Mon Sep 17 00:00:00 2001 From: Lionel Dricot Date: Mon, 3 Jan 2022 16:40:52 +0100 Subject: [PATCH] new feature: tour . --- offpunk.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/offpunk.py b/offpunk.py index 285882f..d1ca0ed 100755 --- a/offpunk.py +++ b/offpunk.py @@ -1502,6 +1502,7 @@ queue of gemini items. Items can be added with `tour 1 2 3 4` or ranges like `tour 1-4`. All items in current menu can be added with `tour *`. +Current item can be added back to the end of the tour with `tour .`. Current tour can be listed with `tour ls` and scrubbed with `tour clear`.""" def add_to_tourfile(url): with open(self.tourfile,'a') as f: @@ -1549,6 +1550,8 @@ Current tour can be listed with `tour ls` and scrubbed with `tour clear`.""" elif line == "*": for l in self.lookup: add_to_tourfile(l.url) + elif line == ".": + add_to_tourfile(self.gi.url) elif looks_like_url(line): add_to_tourfile(line) else: