cp.nvim/lua/cp
Barrett Ruth 835119ccd6 feat(setup): prompt before overwriting existing source file
Problem: loading a problem whose source file already exists silently
overwrites any content written by the user.

Solution: when the target source file exists on the filesystem
(`vim.uv.fs_stat`), show an inline `[y/N]` prompt. Declining keeps the
existing file open and registers the platform/contest/problem state
without touching the file. The prompt is skipped when the file is
already loaded in a buffer.
2026-03-07 16:28:24 -05:00
..
commands feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
pickers feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
runner feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
ui feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
cache.lua feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
config.lua fix(scraper): httpx login fast paths, proactive validation, and slug filename fix (#358) 2026-03-07 15:38:12 -05:00
constants.lua fix(scrapers): cookie fast paths, centralized storage, and reauth hardening (#363) 2026-03-07 16:10:51 -05:00
credentials.lua fix(scrapers): cookie fast paths, centralized storage, and reauth hardening (#363) 2026-03-07 16:10:51 -05:00
health.lua feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
helpers.lua feat(ui): auto-hide source buffer on close 2025-10-24 14:47:12 -04:00
init.lua feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
log.lua fix(submit): use file path over stdin; fix CF CodeMirror textarea (#305) 2026-03-05 14:34:14 -05:00
race.lua fix(race): log initial countdown on start (#356) 2026-03-06 23:59:56 -05:00
restore.lua fix(submit): use file path over stdin; fix CF CodeMirror textarea (#305) 2026-03-05 14:34:14 -05:00
scraper.lua feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
setup.lua feat(setup): prompt before overwriting existing source file 2026-03-07 16:28:24 -05:00
state.lua refactor(run): remove I/O view test navigation keymaps 2026-03-04 00:26:22 -05:00
stress.lua feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
submit.lua fix(scrapers): login fast paths and re-auth hardening for httpx platforms (#357) 2026-03-07 02:23:43 -05:00
utils.lua feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
version.lua fix: refactor 2025-09-21 11:19:00 -04:00