[FEATURE] Optimize for termux
Starting a discussion to optimize for termux
The following are my opinions
UI Changes
- [x] Reorder layout to have feeds tab above the article tab, and display only current feed name
- [x] Do not display time and reduce whitespace in feed title
Behavior changes
- [ ] Add
--minimalcommand line option to activate "termux mode" - [x] ~~Add tab and shift-tab to change feed~~ Add PGUP and PGDN to change feed
- [x] Reload screen size on terminal resize (Needed as keyboard can be closed after running neix)
#18 has some thing on keybindings. Should that be implemented first? Then termux keybindings will work as usual
Note that resizing is already supposed to work, but requires an extra keypress post resizing. This is a quirk of the ncurses library, and we can't do much.
Further, presently the resize is handled by KEY_RESIZE, but according to an SO post, not all ncurses are compiled with that enabled. In order to avoid this, we can either handle the signal ourselves, or, more simply, add a keybinding r to force resize.
PGUP and PGDN should change feed, not tab and shift-tab as those are the ones shown by default.
#28 should complete all tasks except adding a command line configuration. Instead, it uses screen width as a heuristic for portrait orientation