ThomasHabets / cmdg

Command line Gmail client
Other
197 stars 18 forks source link

can't see more than N messages #80

Open pathcl opened 3 years ago

pathcl commented 3 years ago

Hi there!

first thanks for making your project open source. Ive been having lots of fun reading the code :)

I've been trying to read all my emails but it seems using 'less' as pager only shows a limited number in inbox however there're more than those being shown. Am I missing something?

P.D: Im using less for pager and vim as editor

pathcl commented 3 years ago

Looks this is here: https://github.com/ThomasHabets/cmdg/blob/a1f84781bb3e7491dd08f1cdc6425b7e2b274155/pkg/cmdg/connection.go#L35 ?

ThomasHabets commented 3 years ago

The inbox is not using less as a pager. less is only used to read the raw message (pressing backslash).

It is, however, only loading a limited number of messages. The initial load is "at least enough to fill the terminal from top to bottom". The logic is here.

What's needed here is to continue fetching as you scroll and things start getting into view.