Bookmarks timeline

merge-requests/30/head
Bob Mottram 2021-03-19 21:34:38 +00:00
parent 99bfa49773
commit 548dbc5147
2 changed files with 54 additions and 38 deletions

View File

@ -446,7 +446,7 @@ post to [handle] Create a new direct message
announce/boost Boost the last post
follow [handle] Make a follow request
unfollow [handle] Stop following the give handle
show dm|sent|inbox|replies Show a timeline
show dm|sent|inbox|replies|bookmarks Show a timeline
next Next page in the timeline
prev Previous page in the timeline
read [post number] Read a post from a timeline

View File

@ -50,7 +50,7 @@ def _desktopHelp() -> None:
print('')
print(indent + 'quit ' +
'Exit from the desktop client')
print(indent + 'show dm|sent|inbox|replies ' +
print(indent + 'show dm|sent|inbox|replies|bookmarks ' +
'Show a timeline')
print(indent + 'mute ' +
'Turn off the screen reader')
@ -1007,6 +1007,22 @@ def runDesktopClient(baseDir: str, proxyType: str, httpPrefix: str,
newRepliesExist, newDMsExist)
# Turn off the replies indicator
newRepliesExist = False
elif commandStr.startswith('show b'):
pageNumber = 1
prevTimelineFirstId = ''
currTimeline = 'tlbookmarks'
boxJson = c2sBoxJson(baseDir, session,
nickname, password,
domain, port, httpPrefix,
currTimeline, pageNumber,
debug)
if boxJson:
_desktopShowBox(currTimeline, boxJson,
screenreader, systemLanguage, espeak,
pageNumber,
newRepliesExist, newDMsExist)
# Turn off the replies indicator
newRepliesExist = False
elif (commandStr.startswith('show sen') or
commandStr.startswith('show out')):
pageNumber = 1