Skip to content

Press Ctrl+C twice to exit#100

Merged
agavra merged 1 commit intoagavra:mainfrom
harsh1995:feat/ctrl-c-exit
Jan 16, 2026
Merged

Press Ctrl+C twice to exit#100
agavra merged 1 commit intoagavra:mainfrom
harsh1995:feat/ctrl-c-exit

Conversation

@harsh1995
Copy link
Copy Markdown
Contributor

@harsh1995 harsh1995 commented Jan 16, 2026

Add a "press Ctrl+C again to exit" feature:

  • First Ctrl+C shows "Press Ctrl+C again to exit" message
  • Second Ctrl+C within 2 seconds exits the application
  • Message auto-clears after timeout expires
  • Works from all input modes (Normal, Help, Command, Search, Comment, Confirm, CommitSelect)
  • In Comment mode, first Ctrl+C also cancels the comment

fixes #1

Add a "press Ctrl+C again to exit" feature:
- First Ctrl+C shows "Press Ctrl+C again to exit" message
- Second Ctrl+C within 2 seconds exits the application
- Message auto-clears after timeout expires
- Works from all input modes (Normal, Help, Command, Search, Comment, Confirm, CommitSelect)
- In Comment mode, first Ctrl+C also cancels the comment
@harsh1995 harsh1995 marked this pull request as ready for review January 16, 2026 03:53
@agavra
Copy link
Copy Markdown
Owner

agavra commented Jan 16, 2026

Tested locally and works great! I just noticed that if you're on the commit selection screen it doesn't show the status bar messages. That's a separate issue I'll file though.

thanks for your first contribution @harsh1995 :)

@agavra agavra merged commit 853fb78 into agavra:main Jan 16, 2026
4 checks passed
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.

Ctrl+C/D should prompt "press twice to exit"

2 participants