Commits


garbage collect `dequeue_first_download'


drop the `buffer' flag for enqueue_download it's unused as write_buffer now writes a buffer to the disk.


merge the fs into the ui process The previous separation between the fs and ui process wasn't that good. The idea was to have a `ui' process tightly sandboxed, but it was a lie actually. `ui' was one imsg away from making internet connections and accessing data on the disk, so it wasn't really limited in (almost) any way. Furthermore, having to serialize data to/from the fs proc started to become not really maneagable. As a first step to fix this situation, join the fs and ui process.


add write-buffer saves a page to the disk. Also, changes the order of the downloads so the new one is always at the top.


fix prototype


use download_cols to wrap the text in the download buffer download_lines is a very small value, for a normally sized terminal is exactly 5. This was the cause behind the download pane glitch, 5 was used as *column number* for the reflow. Now, to be honest, the exact width passed to wrap_page is not important. wrap_page will only wrap the size string, which we know is less than or equal to FMT_SCALED_STRSIZE-1 (6). We could also hardcode the value eventually, but using download_cols reads better.


pass the correct pointer


swap the fields in download lines


switch to our new struct download for the downloads


wrap download page


add download and download.* line styles


add side window for downloads