prompt for y/N override when source file already exists on load #364
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/cp.nvim#364
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When loading a problem whose source file already exists, the plugin silently overwrites (or skips) it with no user confirmation. This can cause accidental loss of in-progress solutions.
Solution
Show a
y/Nprompt before overwriting an existing source file on:CP <platform> <contest>or:CP next/prev/pick. If the user declines, keep the existing file and load state around it.