Skip to content

u/brunofauth

In this archive from Feb 2017 to May 2019

0
posts
30
comments
0
media
73
score

Top comments

Hey bud, the .readlines() on line 32 is redundant, as you can iterate through lines of a file directly, i.e. for line in file: is a thing

Furthermore, I think you forgot to .close() your file after using it, in load_data() (line 27).

Cool setup btw, I use i3gaps too, it’s awesome right?

Edit: uhh dude, I’ve slept for only 3 hours last night, so I might be missing something, but... are you shuffling an empty list on line 38?

5 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.