-
Notifications
You must be signed in to change notification settings - Fork 131
Quit instantly when no items marked for deletion #297
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
Conversation
Co-authored-by: Byron <[email protected]>
c9455a1 to
d0f66d6
Compare
| [[package]] | ||
| name = "home" | ||
| version = "0.5.11" | ||
| version = "0.5.12" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this version requires Rust 1.88, contrary to your own MSRV 1.83.
You could use CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback when updating your lockfile to avoid this automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the hint!
I would have thought that if Cargo treats rust-version as MSRV, it would automatically assure version updates don't violate it.
Personally, I didn't think of it as MSRV, just as the minimal version that is needed to build the application code, just as a service to those who want to build it themselves.
If dependencies aren't adhering to it, I'd rather remove the field, I think.
Does that make sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have thought that if Cargo treats
rust-versionas MSRV, it would automatically assure version updates don't violate it.
That's what the fallback resolver is about, but it's relatively new. You can opt into this more directly starting in 1.84, and it's the default in 2024 edition (1.85+).
https://blog.rust-lang.org/2025/01/09/Rust-1.84.0/#cargo-considers-rust-versions-for-dependency-version-selection
Personally, I didn't think of it as MSRV, just as the minimal version that is needed to build the application code, just as a service to those who want to build it themselves.
If dependencies aren't adhering to it, I'd rather remove the field, I think. Does that make sense?
Even as just a hint, I think it's still useful to keep, but maybe it would be worth adding a CI job for it so you know when it needs to be increased.
I don't think it's a big deal for dependencies to raise their MSRV now that we have a resolver that deals with it, and you don't necessarily need to follow them if you're not using new features too. It's up to you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then I think it's fixed now - I intuitively removed that version field and added edition = 2024. But from what I read here, it seems it can be re-added to protect against new lints showing up unexpectedly.
In any case, thanks for all your help, it was quite inspirational.
Pressing 'q' in the main view previously required two confirmations regardless of whether items were marked for deletion. This added unnecessary friction when no destructive action was pending.
Changes
Modified
handle_quit()insrc/interactive/app/eventloop.rs:window.mark_pane.is_none()(no deletion risk)Added tests covering both instant quit and two-press scenarios.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.