Add Update as a conditional 6th option in the interactive menu#540
Closed
Add Update as a conditional 6th option in the interactive menu#540
Conversation
Shows a numbered Update entry in the main menu only when a new version is available (driven by the existing update_message cache), with full arrow-key navigation, Enter, and 6 shortcut support. Also adds update command coverage to the bash and zsh completion tests.
Added a condition to check if the update option should be displayed in the interactive main menu, improving user experience by preventing unnecessary navigation when updates are not available.
tw93
added a commit
that referenced
this pull request
Mar 5, 2026
Owner
|
@xde013 Thanks a lot for the contribution and for putting this together. I didn’t merge #540 directly, but I applied the underlying fix on The main reason is that the PR included more than this specific menu behavior, and the update action could still be triggered through the So there’s no need to merge #540 for this specific change anymore, but I really appreciate the work here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, updating Mole requires knowing and typing mo update each time...
Now when a new version is detected (via the existing update_message cache), a numbered Update entry appears as option 6 in the mo interactive menu.
Changes: