Refactor TUI exit keybindings: Ctrl+D to quit and Enter to exit after render#103
Merged
Refactor TUI exit keybindings: Ctrl+D to quit and Enter to exit after render#103
Conversation
- Changed Ctrl+C to only copy selected text (does nothing if no selection) - Added Ctrl+D for immediate exit without confirmation - Removed double Ctrl+C to quit logic and quit-pending state - Removed ESC to cancel quit logic - Updated footer and success messages to reflect new keybindings - Cleaned up unused CSS class for quit-pending state Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Update footer to show render-finished keybindings and allow exiting with Enter once rendering is done. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
db3102e to
f8f055c
Compare
- Changed Ctrl+C to only copy selected text (does nothing if no selection) - Added Ctrl+D for immediate exit without confirmation - Removed double Ctrl+C to quit logic and quit-pending state - Removed ESC to cancel quit logic - Updated footer and success messages to reflect new keybindings - Cleaned up unused CSS class for quit-pending state Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
f8f055c to
e631861
Compare
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.
Summary
Changes
Keyboard Shortcuts
Visual changes
Code Changes
tui/plain2code_tui.py:_quit_pendingstate managementaction_smart_quit()with simpleraction_copy_selection()action_enter_exit()to allow exiting with Enter after render completes_render_finishedflag to track render completion stateon_render_completed()to set flag and update footeraction_cancel_quit()and_refresh_footer()methodstui/components.py:RENDER_FINISHED_TEXTconstant for post-render footershow_render_finished()method to dynamically update footerupdate_quit_state()methodtui/widget_helpers.py:tui/styles.css:.custom-footer-quit-pendingCSS classTest Plan
🤖 Generated with Claude Code