enkiv2 / fern Goto Github PK
View Code? Open in Web Editor NEWfern: a curses-based mastodon client modeled off usenet news readers & pine, with an emphasis on getting to 'timeline zero'
License: BSD 3-Clause "New" or "Revised" License
fern: a curses-based mastodon client modeled off usenet news readers & pine, with an emphasis on getting to 'timeline zero'
License: BSD 3-Clause "New" or "Revised" License
Getting to Timeline Zero makes a lot more sense if you start at the oldest unread toot, rather than reading everything backwards.
Reverse chronological is for firehoses you don't intend to drink everything from.
Have you thought about adding image support with the help of for example w3mimgdisplay?
Raises
Traceback (most recent call last):
File "/home/kensp/Documents/fern/./fern", line 905, in <module>
main()
File "/home/kensp/Documents/fern/./fern", line 894, in main
else: tl=getTimeline("all", verbose=True)
File "/home/kensp/Documents/fern/./fern", line 644, in getTimeline
for item in which.split(): tl.extend(getTimeline(item, **kw_args))
File "/home/kensp/Documents/fern/./fern", line 666, in getTimeline
tl=ensureCached(tl)
File "/home/kensp/Documents/fern/./fern", line 755, in ensureCached
elif type(toot) in [str, unicode]: # TID
NameError: name 'unicode' is not defined
Trying to open pager causes a crash.
Traceback (most recent call last):
File "/home/kensp/Documents/fern/./fern", line 905, in <module>
main()
File "/home/kensp/Documents/fern/./fern", line 902, in main
raise e
File "/home/kensp/Documents/fern/./fern", line 896, in main
try: mainloop()
File "/home/kensp/Documents/fern/./fern", line 869, in mainloop
return cmd(table[key])
File "/home/kensp/Documents/fern/./fern", line 586, in execCommand
subprocessRun(pager, processContents(tl[tlIdx+hlIdx]["content"]))
File "/usr/lib/python3.10/subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.10/subprocess.py", line 780, in __init__
raise TypeError("bufsize must be an integer")
TypeError: bufsize must be an integer
Opening Thread view crashes
Traceback (most recent call last):
File "/home/kensp/Documents/fern/./fern", line 905, in <module>
main()
File "/home/kensp/Documents/fern/./fern", line 902, in main
raise e
File "/home/kensp/Documents/fern/./fern", line 896, in main
try: mainloop()
File "/home/kensp/Documents/fern/./fern", line 869, in mainloop
return cmd(table[key])
File "/home/kensp/Documents/fern/./fern", line 528, in execCommand
toots=expandThread(tid)
File "/home/kensp/Documents/fern/./fern", line 679, in expandThread
ensureCached(tid)
File "/home/kensp/Documents/fern/./fern", line 758, in ensureCached
conditionalStatusMsg(dmsg, false, verbose, msg, suffix=suffix)
NameError: name 'false' is not defined
When I build this (using this AUR package), and then run fern
, and then configure my login, afterwards it crashes with
Traceback (most recent call last):
File "/usr/bin/fern", line 905, in <module>
main()
File "/usr/bin/fern", line 894, in main
else: tl=getTimeline("all", verbose=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/fern", line 644, in getTimeline
for item in which.split(): tl.extend(getTimeline(item, **kw_args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/fern", line 666, in getTimeline
tl=ensureCached(tl)
^^^^^^^^^^^^^^^^
File "/usr/bin/fern", line 755, in ensureCached
elif type(toot) in [str, unicode]: # TID
^^^^^^^
NameError: name 'unicode' is not defined
This crash repeats when I want to start fern
again.
Python version: 3.11.6.
Regards!
I verified that this happens using Python 2.7 on Fedora linux. It fetches the timeline, displays the UI (with blank cards for toots), then displays the short error "Something happened: addstr() returned ERR". After typing any key, the following traceback:
File "./fern", line 716, in main
mainloop()
File "./fern", line 671, in mainloop
drawPanelContents(tl[tlIdx:], hlIdx)
File "./fern", line 321, in drawPanelContents
drawPanels(fillInDomain(mastodon.account_verify_credentials()["acct"]), ROWS, COLS, selectedIdx)
File "./fern", line 271, in drawPanels
scr.addstr(centerPad("[(b)oost] [(f)av] [mark_(u)nread] "+clopen+" [(t)hread_view] [(F)etch_new] [(:)_command]", cols).replace("_", " "), curses.color_pair(menunum))
error: addstr() returned ERR
Traceback (most recent call last):
File "./fern", line 724, in <module>
main()
File "./fern", line 708, in main
main()
File "./fern", line 721, in main
raise e
error: addstr() returned ERR
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.