vonshednob / pter

Manage your todo.txt in a commandline user interface (TUI)
https://vonshednob.cc/pter/
MIT License
102 stars 6 forks source link

Patch to improve item highlighting in project/context selectors #47

Closed andrei-a-papou closed 6 months ago

andrei-a-papou commented 6 months ago

It's a minor UX thing, but it would be nice, IMO, if item highlighting filled the whole Selector width, like it does for completion.

Here's a patch: 98-fix-highlghting-in-project-context-selectors.diff.gz

In addition, would it be possible not to truncate project and context selector titles? Maybe a minimal title/dialog width can be implemented to make sure short titles like "Select project" and "Select context" do not get ellipsized?

andrei-a-papou commented 6 months ago

Without minimal title width, we can get a situation like this: https://i.imgur.com/FrCv2GV.png

A bit of an extreme situation, but still :) If a user has short context and project names, they might get "Select..." as a dialog title for both project and contexts. Close to what I'm experiencing :)

vonshednob commented 6 months ago

Patch is merged and the title is no longer cut off!

andrei-a-papou commented 6 months ago

Nice!