-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help menu #82
base: master
Are you sure you want to change the base?
Help menu #82
Conversation
Sorry for the late reply, I quite like it and this has been a long requested feature. Using $PAGER for makes a lot of sense since the text widget is so bare bones... It's a good idea actually. If you're still interested in working on this it would be great if you could add the default binding to the
Maybe a link to the github repo and to the irc channel, too. Other than that I'd be happy to merge your changes as is. EDIT: I'm currently improving the text widget (or rather just hooking up the key bindings), so maybe you could use that instead of relying on To get it to work you'd need to:
For the actual color codes you can just use the stuff in |
I should be able to at least add the help text and the keys to keybinding updates. Time permitting, I'll look into using the actual text widget. Otherwise, I might leave that as a future improvement. |
No worries. Thanks for your work! |
I updated the help text and add the keys to the config. |
Ohh... right, totally forgot about that. No, there isn't, at least not directly. The kind of bindings and such are completely static at the moment, so there's no way to make one particular widget instance behave differently from any other, or have more types of actions it can handle, other than creating a whole new type. So to actually do that you'd have to create a "HelpView" that contains the TextView and just passes on all the calls I can understand if you don't feel like doing it, I'd be happy to merge your changes as is, too. |
Let's merge the changes as they currently are. It's mostly lack of time right now. Thank you for your help on this! |
Initial commit, for review and comment. This adds a new key binding ('H' by default) for a help menu.
Pressing the key generates a list of the program's current key bindings and pipes it into the pager program ($PAGER or defaults to "less").
I think we can also add information like the current program version and a description of the program to this menu, but wanted feedback on the implementation and direction first.