Skip to content

Commit eccaefe

Browse files
Testing, Manual Commits, Shortcuts and More (#24)
2 parents 5c037b2 + 0921107 commit eccaefe

File tree

22 files changed

+2335
-175
lines changed

22 files changed

+2335
-175
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"@labcatr/labcommitr": minor
3+
---
4+
5+
feat: add keyboard shortcuts for faster prompt navigation
6+
7+
- Add keyboard shortcuts module with auto-assignment algorithm
8+
- Enable shortcuts by default in generated configurations
9+
- Generate default shortcut mappings for commit types in init workflow
10+
- Implement input interception for single-character shortcut selection
11+
- Add shortcuts support to type, preview, and body input prompts
12+
- Include shortcuts configuration in advanced section with validation
13+
- Support custom shortcut mappings with auto-assignment fallback
14+
- Display shortcut hints in prompt labels when enabled
15+

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ coverage/
3636
*.lcov
3737

3838
# Testing
39-
.test-temp/
39+
# Sandbox directory for testing Labcommitr commands (scripts in scripts/ are tracked)
40+
.sandbox/
4041
test-results/
41-
scripts/
4242

4343
# npm/yarn/pnpm
4444
npm-debug.log*
@@ -61,13 +61,15 @@ Thumbs.db
6161
.project
6262
.classpath
6363
.settings/
64+
.cursor/
6465

6566
# Temporary files
6667
*.tmp
6768
*.temp
6869
.cache/
6970

7071

72+
7173
### Other
7274
# Remove rust files for now
7375
rust-src/

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,25 @@ A solution for building standardized git commits!
1515
`labcommitr init`, `-i`: Create a file called `.labcommitrc` in the root directory of the current git repo.
1616

1717
`labcommitr go <type> [...message]`: Quickly submit a commit of the specified type with a message. If a message is not specified, a generic one will be generated for you (it is not good practice, however its BLAZINGLY FAST).
18+
19+
## Development & Testing
20+
21+
### Testing Sandbox
22+
23+
For safe testing of Labcommitr commands without affecting your real repository, use the testing sandbox:
24+
25+
```bash
26+
# Create sandbox with config (if available)
27+
pnpm run test:sandbox
28+
29+
# Create sandbox without config (start from scratch)
30+
pnpm run test:sandbox:bare
31+
32+
# Quick reset for iterative testing
33+
pnpm run test:sandbox:reset
34+
35+
# Clean up
36+
pnpm run test:sandbox:clean
37+
```
38+
39+
See [`scripts/README.md`](scripts/README.md) for complete testing documentation.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
"format:ci": "pnpm run format:code",
1111
"format:code": "prettier -w \"**/*\" --ignore-unknown --cache",
1212
"version": "changeset version && pnpm install --no-frozen-lockfile && pnpm run format",
13-
"test:commit:sandbox": "bash scripts/test-commit-sandbox.sh",
14-
"test:commit:reset": "bash scripts/reset-sandbox.sh"
13+
"test:sandbox": "bash scripts/labcommitr-sandbox.sh",
14+
"test:sandbox:bare": "bash scripts/labcommitr-sandbox.sh --no-config",
15+
"test:sandbox:reset": "bash scripts/labcommitr-sandbox.sh --reset",
16+
"test:sandbox:clean": "bash scripts/labcommitr-sandbox.sh --clean"
1517
},
1618
"type": "module",
1719
"bin": {

0 commit comments

Comments
 (0)