This project demonstrates a simple column view navigation menu for terminal user interfaces (TUI) using the Textual framework written in Python. I am learning Textual while developing this project, and the aim is to create a base for future menu-driven TUI applications.
- Focus on sub-menu when selecting an option in sidebar
- Keep the option in sidebar highlighted when selecting and "auto-focusing" on submenu. After that, make sure the highlight colour of focused option is not same as the sidebar option.
- When selecting an option in any menu, add a class
prev
to that menu to make that widget as previously visited and remove when it is focused (or any other class than the submenu ofprev
is visited, this is something of low priority). Lastly, update the binding for navigating backwards.