prompt for y/N override when source file already exists on load #364

Closed
opened 2026-03-07 21:08:09 +00:00 by barrettruth · 0 comments
barrettruth commented 2026-03-07 21:08:09 +00:00

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/N prompt 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.

## 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/N` prompt 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/cp.nvim#364
No description provided.