purebred-mua / purebred

A terminal based mail user agent based on notmuch
GNU Affero General Public License v3.0
139 stars 19 forks source link

Context Help #191

Open romanofski opened 6 years ago

romanofski commented 6 years ago

I think the current help view should be replaced with something better and by better I mean we can probably shelve #85.

The problem with the current help view is that it isn't very useful, because a) you leave your former view in order to "read" the help b) it adds a context switch to what you were doing

The problem with all of this is, that it interrupts your workflow even if it shows you key bindings for your currently focused widgets. Furthermore, I doubt that anyone reads beyond that. Who would remember this, even?

So I think we can do better. I'm thinking of something like a context help toggle, you e.g. bind to F1. When you press F1 and hold it pressed, you see a little window - which will hopefully not obstruct the widget you have currently focused - with all the key bindings for the focused widgets.

Why is this better? a) There is no workflow interruption, because the little help window disappears when you stop pressing F1 (if it's bound to this key) b) You get all the information for the focused widget which IMHO is all you're interested in.

frasertweedale commented 5 years ago

Stacked widget support could be helpful in implementing this: https://github.com/purebred-mua/purebred/issues/297