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

feat: ctrl-c to quit the app #297

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

bloznelis
Copy link

Resolves #258.

Firstly, thanks for this - I love magit and command line, so this feels like a perfect tool for me. As a thank you, I figured I will contribute a small ticket for you.

Now ctrl-c will exit the app bypassing any default or custom bindings. If you want to tweak the logic (for example exit only when the amount of screens is 1 i.e. root-level) - add more conditions to is_system_quit function.

Copy link

codecov bot commented Dec 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.41%. Comparing base (0f02879) to head (a45e9fc).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #297      +/-   ##
==========================================
+ Coverage   88.40%   88.41%   +0.01%     
==========================================
  Files          62       62              
  Lines        5578     5583       +5     
==========================================
+ Hits         4931     4936       +5     
  Misses        647      647              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@altsem
Copy link
Owner

altsem commented Dec 26, 2024

Hi! This is great :)

I wonder if someone would ever want this to be configurable. 🤔

Perhaps it wouldn't hurt, what do you think?

In the case, I believe there's a module "config.rs", as well as a "default_config.toml", where other stuff is configured.

Currently on vacation so could include it in a release when I'm back home (February).

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> to exit the application
2 participants