Builditluc / wiki-tui

A simple and easy to use Wikipedia Text User Interface
https://wiki-tui.net/
MIT License
416 stars 14 forks source link

Changing the UI structure #216

Closed Builditluc closed 1 month ago

Builditluc commented 1 year ago

Part of the Conversion from Cursive to Ratatui

This issue tracks the change of the UI structure. Any idea / issue or discussion is highly appreciated!

Requirements for the UI

Builditluc commented 1 year ago

Decouple the backend from cursive (and make it cleaner)

The first thing would be to decouple the wiki module fully from the cursive library. I've been seeing the following things that would need adjustment:

Builditluc commented 1 year ago

Check ratatui for requirements

We need to check if ratatui satisfies all of our needs. I'm collecting all of them below (additions are greatly appreciated!):

ethamck commented 1 year ago

or no borders

If the UI is changed, I'd love a way to disable everything other than the main page view, including the border. I've already disabled the table of contents in my config. On a tiling window manager, there is often not enough space for multiple panes at once, and on smaller terminals, even three extra columns would be a nice addition, plus the window would better blend in with their setup.

Example where wiki-tui is scaled to 0.25 on a 1600x900 display so only 80 columns are visible _

Builditluc commented 1 year ago

Yes of course and I definitely see your point. I'm planning on having different "layouts" that can be switched in the config. If you want I can notify you when I'm implementing it so you can try it out check if it fits your needs!

Builditluc commented 1 month ago

Closing this since #220 already addresses the new UI