From bff6ce64540285f7de1b918994516250da36a6f1 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 6 Mar 2026 18:26:19 -0500 Subject: [PATCH] docs(race): update syntax to `--race` flag --- doc/cp.nvim.txt | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/doc/cp.nvim.txt b/doc/cp.nvim.txt index add0bcb..e6c4c61 100644 --- a/doc/cp.nvim.txt +++ b/doc/cp.nvim.txt @@ -438,17 +438,14 @@ COMMANDS *cp-commands* < Race Commands ~ - :CP race {platform} {contest_id} [--lang {language}] + :CP {platform} {contest_id} --race [--lang {language}] Start a countdown to the contest's scheduled start time. At T=0, automatically runs: :CP {platform} {contest_id} [--lang ...] Examples: > - :CP race atcoder abc400 - :CP race codeforces 2100 --lang python + :CP atcoder abc400 --race + :CP codeforces 2100 --race --lang python < - :CP race stop - Cancel an active race countdown. - Credential Commands ~ :CP login [platform] Set or update stored credentials for a platform. @@ -588,9 +585,6 @@ through the same code path as |:CP|. *(cp-open)* (cp-open) Open current problem URL in browser. Equivalent to :CP open. - *(cp-race-stop)* -(cp-race-stop) Cancel active race countdown. Equivalent to :CP race stop. - Example configuration: >lua vim.keymap.set('n', 'cr', '(cp-run)') vim.keymap.set('n', 'cp', '(cp-panel)') @@ -601,7 +595,7 @@ Example configuration: >lua vim.keymap.set('n', 'ci', '(cp-interact)') vim.keymap.set('n', 'cs', '(cp-stress)') vim.keymap.set('n', 'cu', '(cp-submit)') - vim.keymap.set('n', 'cR', '(cp-race-stop)') + < ============================================================================== @@ -986,15 +980,14 @@ RACE *cp-race* Count down to a contest's start time and automatically run setup at T=0. -:CP race {platform} {contest_id} [--lang {language}] +:CP {platform} {contest_id} --race [--lang {language}] Start a countdown timer. At T=0, automatically runs: :CP {platform} {contest_id} [--lang {language}] Examples: > - :CP race atcoder abc400 - :CP race codeforces 2100 --lang python + :CP atcoder abc400 --race + :CP codeforces 2100 --race --lang python < -:CP race stop - Cancel an active race countdown. +Starting a new race while one is active automatically cancels the previous one. Statusline integration: see |cp-race-status|.