feat(commands): document :CP open [problem|contest|standings] (#321)
forgot to document `:CP open`
This commit is contained in:
parent
7bf4cf2538
commit
401afb205e
1 changed files with 40 additions and 9 deletions
|
|
@ -24,15 +24,16 @@ CONTENTS *cp-contents*
|
||||||
16. Race .......................................................... |cp-race|
|
16. Race .......................................................... |cp-race|
|
||||||
17. Credentials ............................................ |cp-credentials|
|
17. Credentials ............................................ |cp-credentials|
|
||||||
18. Submit ...................................................... |cp-submit|
|
18. Submit ...................................................... |cp-submit|
|
||||||
19. ANSI Colors ................................................... |cp-ansi|
|
19. Open ......................................................... |cp-open|
|
||||||
20. Highlight Groups ........................................ |cp-highlights|
|
20. ANSI Colors ................................................... |cp-ansi|
|
||||||
21. Terminal Colors .................................... |cp-terminal-colors|
|
21. Highlight Groups ........................................ |cp-highlights|
|
||||||
22. Highlight Customization .......................... |cp-highlight-custom|
|
22. Terminal Colors .................................... |cp-terminal-colors|
|
||||||
23. Helpers .................................................... |cp-helpers|
|
23. Highlight Customization .......................... |cp-highlight-custom|
|
||||||
24. Statusline Integration .................................. |cp-statusline|
|
24. Helpers .................................................... |cp-helpers|
|
||||||
25. Panel Keymaps .......................................... |cp-panel-keys|
|
25. Statusline Integration .................................. |cp-statusline|
|
||||||
26. File Structure ................................................ |cp-files|
|
26. Panel Keymaps .......................................... |cp-panel-keys|
|
||||||
27. Health Check ................................................ |cp-health|
|
27. File Structure ................................................ |cp-files|
|
||||||
|
28. Health Check ................................................ |cp-health|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
INTRODUCTION *cp.nvim*
|
INTRODUCTION *cp.nvim*
|
||||||
|
|
@ -487,6 +488,17 @@ COMMANDS *cp-commands*
|
||||||
credentials are saved.
|
credentials are saved.
|
||||||
--lang: Submit solution for a specific language.
|
--lang: Submit solution for a specific language.
|
||||||
|
|
||||||
|
:CP open [problem|contest|standings]
|
||||||
|
Open the URL for the current problem, contest,
|
||||||
|
or standings page in the browser via
|
||||||
|
|vim.ui.open|. Defaults to "problem" if no
|
||||||
|
argument is given. Warns if the URL is not
|
||||||
|
available (e.g. CSES has no standings).
|
||||||
|
Examples: >
|
||||||
|
:CP open
|
||||||
|
:CP open contest
|
||||||
|
:CP open standings
|
||||||
|
<
|
||||||
State Restoration ~
|
State Restoration ~
|
||||||
:CP Restore state from current file.
|
:CP Restore state from current file.
|
||||||
Automatically detects platform, contest, problem,
|
Automatically detects platform, contest, problem,
|
||||||
|
|
@ -580,6 +592,9 @@ through the same code path as |:CP|.
|
||||||
*<Plug>(cp-submit)*
|
*<Plug>(cp-submit)*
|
||||||
<Plug>(cp-submit) Submit current solution. Equivalent to :CP submit.
|
<Plug>(cp-submit) Submit current solution. Equivalent to :CP submit.
|
||||||
|
|
||||||
|
*<Plug>(cp-open)*
|
||||||
|
<Plug>(cp-open) Open current problem URL in browser. Equivalent to :CP open.
|
||||||
|
|
||||||
*<Plug>(cp-race-stop)*
|
*<Plug>(cp-race-stop)*
|
||||||
<Plug>(cp-race-stop) Cancel active race countdown. Equivalent to :CP race stop.
|
<Plug>(cp-race-stop) Cancel active race countdown. Equivalent to :CP race stop.
|
||||||
|
|
||||||
|
|
@ -1021,6 +1036,22 @@ Submit the current solution to the online judge.
|
||||||
AtCoder Fully implemented.
|
AtCoder Fully implemented.
|
||||||
Others Not yet implemented.
|
Others Not yet implemented.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
OPEN *cp-open*
|
||||||
|
|
||||||
|
Open a platform URL for the current contest in the browser.
|
||||||
|
|
||||||
|
:CP open [problem|contest|standings]
|
||||||
|
Open the URL for the active problem, contest page, or standings.
|
||||||
|
Defaults to "problem" if no argument is given. Uses |vim.ui.open|.
|
||||||
|
Warns if the URL is unavailable (e.g. CSES has no standings page).
|
||||||
|
|
||||||
|
Platform support:
|
||||||
|
AtCoder problem, contest, standings
|
||||||
|
Codeforces problem, contest, standings
|
||||||
|
CSES problem, contest (no standings)
|
||||||
|
Others Not yet implemented.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
ANSI COLORS AND HIGHLIGHTING *cp-ansi*
|
ANSI COLORS AND HIGHLIGHTING *cp-ansi*
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue