r/commandline • • Mar 22 '19

Made a cli epub reader

Post image
567 Upvotes

64 comments sorted by

View all comments

56

u/lpreams Mar 22 '19 edited Mar 22 '19

Only change I recommend is following the XDG base dir spec instead of just creating ~/.epr

https://wiki.archlinux.org/index.php/XDG_Base_Directory

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

EDIT: Actually, I take that back. I also recommend adding (maybe optional, like with a flag or setting or something) basic vim keybindings. j=down, k=up, h=left (so I guess previous chapter in yours), l=right (next chapter). Maybe make j/k and h/l separate options, and maybe also an option for whether j/k should be scroll or page. Idk, I'm just spitballing here, you can make it as simple or complex as you want, I'm just saying people (like me) like vim keybindings.

21

u/murlakatamenka Mar 22 '19

Yes, please. ~/.config/epr!