A quick little update to Rogallo, bumping to v1.11.0. This release is mainly in support of people who like to use the mouse as much as, if not more than, the keyboard; and also in support of people who might wish to reclaim a couple of lines of display for actual content.
The main change in this release is that I've swapped out the header line that Rogallo used to have (which used the stock Textual Header widget) and replaced it with a mouse-friendly toolbar.

The thinking behind this was twofold: first, the current header wasn't really very useful, showing just the name of the application and the version number. I would hope, really, that most people know what application it is they're running, so having the name there wasn't super useful. Secondly, while Rogallo aims to be keyboard-friendly -- ideally keyboard-first -- it also aims to be mouse-friendly where possible. The problem with the mouse-friendly approach is that a lot of application commands were, for the mouse user, locked behind the command palette. While not impossible to navigate and use, it wasn't the smoothest experience.
So I've swapped that header out for a configurable toolbar of command buttons. The content of the toolbar is set using the toolbar_contents setting in the configuration file. The default set looks like this:
[
["GoHome", "\u2302"],
["Reload", "\u21bb"],
["Backward", "\u25c0\u25c0"],
["Forward", "\u25b6\u25b6"],
["GoToParent", "\u2191"],
["GoToRoot", "\u21c8"],
["SearchHistory", "\u25f7"],
["SearchBookmarks", "\u2605"],
["ToggleView", "\u21cb"]
]
The value in the first position for each button is the name of a bindable command. The second value is the text to place on the button itself. If you simply want to use the command's name, rather than a pair of values, you can just use the command name. So suppose you wanted to use Reload, Backward and Forward as-is, you could set things like this:
[
["GoHome", "\u2302"],
"Reload",
"Backward",
"Forward",
["GoToParent", "\u2191"],
["GoToRoot", "\u21c8"],
["SearchHistory", "\u25f7"],
["SearchBookmarks", "\u2605"],
["ToggleView", "\u21cb"]
]
In addition to this setting, I've also added some other toolbar-related settings. There is:
"toolbar_visible": true
which controls if the toolbar is visible at all. So if you're a keyboard-only kind of user and you want that extra line back, just set that to false.
There is also:
"toolbar_tooltips": true,
which controls the tooltips that will appear when you hover over a button in the toolbar. These are there to explain what each button does, and to also show you what keyboard binding is associated with each one. If the tooltips get irritating, set this to false so they don't appear.
Lastly, there is:
"toolbar_can_get_focus": false
As I've said: the toolbar is added in support of people who use the mouse a fair bit. This means that, by default, it can't be interacted with using the keyboard. This makes sense in that each of the commands will have a keyboard binding, so it makes more sense to simply use that. However, if you really must use the toolbar with the keyboard, you can set this setting to true to enable it. When set this way, you can navigate into the toolbar and switch focus to each of those buttons using the normal Tab and Shift+Tab navigation keys.
One other little configuration feature can also be used to reclaim an extra line in the display. If you have no need for the footer of the application (where some important keys are shown), you can turn it off with:
"footer_visible": true
Set it to false and you get one more line of content.
Have a comment or query about this post? Feel free to drop me a line about it.