Coder Social home page Coder Social logo

enkiv2 / fern Goto Github PK

View Code? Open in Web Editor NEW
56.0 56.0 3.0 186 KB

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

Python 99.13% Makefile 0.87%

fern's People

Contributors

benharri avatar enkiv2 avatar jfmcbrayer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fern's Issues

Jump to Oldest Unread

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.

Add image support?

Have you thought about adding image support with the help of for example w3mimgdisplay?

Crashes on Start due to NameError

fern/fern

Line 755 in 0244f1a

elif type(toot) in [str, unicode]: # TID

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

Crash on trying to open pager

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

Crash on trying to open Thread view

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

Crashes with `NameError: name 'unicode' 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!

Error after logging in

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.