Merge pull request #176 from barrett-ruth/feat/ui/test-case-editing

test case management
This commit is contained in:
Barrett Ruth 2025-10-24 17:10:54 -04:00 committed by GitHub
commit 1d89fa0bdd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 259 additions and 19 deletions

View file

@ -14,6 +14,7 @@ https://github.com/user-attachments/assets/2f01db4a-718a-482b-89c0-e841d37a63b4
- **Automatic problem setup**: Scrape test cases and metadata in seconds
- **Dual view modes**: Lightweight I/O view for quick feedback, full panel for
detailed analysis
- **Test case management**: Quickly view, edit, add, & remove test cases
- **Rich test output**: 256 color ANSI support for compiler errors and program
output
- **Language agnostic**: Works with any language
@ -31,21 +32,20 @@ cp.nvim follows a simple principle: **solve locally, submit remotely**.
### Basic Usage
1. **Find a contest or problem** on the judge website
2. **Set up locally** with `:CP <platform> <contest>`
1. Find a contest or problem
2. Set up contests locally
```
:CP codeforces 1848
```
3. **Code and test** with instant feedback
3. Code and test
```
:CP run " Quick verdict summary in splits
:CP panel " Detailed analysis with diffs
:CP run
```
4. **Navigate between problems**
4. Navigate between problems
```
:CP next
@ -53,7 +53,14 @@ cp.nvim follows a simple principle: **solve locally, submit remotely**.
:CP e1
```
5. **Submit** on the original website
5. Debug and edit test cases
```
:CP edit
:CP panel --debug
```
5. Submit on the original website
## Documentation
@ -63,7 +70,7 @@ cp.nvim follows a simple principle: **solve locally, submit remotely**.
See
[my config](https://github.com/barrett-ruth/dots/blob/main/nvim/lua/plugins/cp.lua)
for a relatively advanced setup.
for the setup in the video shown above.
## Similar Projects