Skip to content
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

[cmdlog-] log a keystroke if cmd had keyless cause #2304

Closed
wants to merge 1 commit into from

Conversation

midichef
Copy link
Contributor

@midichef midichef commented Feb 9, 2024

Addresses #2293. It shuts off the status errors in all the situations I'm aware of.

It doesn't close the issue because there might be a few more ways for the trouble to show up. But I'm pushing this out now to let people run v3.1dev without the errors.

@saulpw
Copy link
Owner

saulpw commented Feb 9, 2024

Can we fix this with a simpler solution, by returning an empty string for shortcut instead of None? I'm hesitant to add another mapping like this, since it's not generally accurate, and I think it would be confusing to run a command from the guide and see a keystroke on the status bar that you didn't press.

Alternatively we could make a function that gets the keystroke for a command, like the HelpSheet keystrokes column does, and use that: sheet.revbinds.get(longname, [None])[0])

@midichef
Copy link
Contributor Author

Okay, I'll close this and submit the simpler solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants