Someone was asking on the #Textual Discord how you'd go about writing a simple live-preview Markdown editor and I’d never really thought about mashing the TextArea and Markdown widgets together and it makes a lot of sense and also makes for a working editor/preview in very few lines of code!
What would you like to see in a TUI for Git Annex?
TUI development in Textual is very much less hassle than the 'real' GUI frameworks (#GTK, #Qt, etc.). What you see here is less than 400 lines of Python code (including all the text).
It's incredible how quickly one gets up to speed in Textual. Very little code and the result already looks like a TUI. This is an early rough draft of what I want the :gitannex: Git Annex Control Center to look like:
Developing a non-trivial application with #Textual is, I believe, a good thing to do -- dogfooding it has happened a couple of times in the past and Tinboard is in part a personal project to do that some more. Last night I started sketching out the add/edit dialog, and ran into a couple or so issues that I’d hope we'll address:
Looks to be an issue with Input width vs other widgets.
Still iterating over the UI and the underlying code and widgets for my current #Textual pet project. I think, think, I'm there now; more or less. It feels clean and tidy while also packing a fair bit in. So I can finally move on to the add/edit/delete side of things.
Also some full text searching is on the cards too.
But the weekend has plans with a lot less coding in them; so might be a wee while yet.
Update: it's now called #DevBoard, and it got improved! Faster loading, keybindings to refresh columns or run specific actions, user configuration (define your own board!)... #Textual workers and notifications are lovely 😍
Another #Textual tinker project, riffing on evolving stuff with random mutation again, but this time point, insertion and deletion, to “evolve" words and test their "fitness” against /usr/share/dict/words
Another good test of textual-plotext and workers too.
This week I’m revisiting textual-plotext, the library that wraps the Plotext terminal plotting library and makes it easy to use in a #Textual application. The aim of this round of development is to improve the colour and theme support.
I made myself a development dashboard using #Textual. It scans all my local #Git repositories to display #Kanban-style columns of things to do (like committing code, pulling/pushing commits, releasing new versions, updating projects, etc.).