Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
5b61661
docs: Documentation update to remove out dated information.
SatanshuMishra Nov 30, 2025
caa480f
fix: add cross-platform editor detection and Node.js version requirement
SatanshuMishra Nov 30, 2025
eaa263b
docs: clarify global config as planned feature
SatanshuMishra Nov 30, 2025
7f3aa9a
build: optimize package contents for npm publishing
SatanshuMishra Nov 30, 2025
9a3198d
chore: remove processed changeset files
SatanshuMishra Nov 30, 2025
35ebb45
chore: apply code formatting and cleanup
SatanshuMishra Nov 30, 2025
2f8b120
fix: use ConfigError for all config loading errors
SatanshuMishra Nov 30, 2025
f7fcc5d
chore: apply prettier formatting to command files
SatanshuMishra Nov 30, 2025
26fc243
chore: apply prettier formatting to remaining source files
SatanshuMishra Nov 30, 2025
08e5152
docs: update documentation for version 0.3.0
SatanshuMishra Nov 30, 2025
b178505
chore: bump version to 0.3.0
SatanshuMishra Nov 30, 2025
18d5a56
feat: implement terminal emoji detection and display adaptation
SatanshuMishra Nov 30, 2025
1f8afac
feat: integrate emoji detection in commit command
SatanshuMishra Nov 30, 2025
b5c00f9
feat: integrate emoji detection in preview command
SatanshuMishra Nov 30, 2025
597d67e
feat: integrate emoji detection in revert command
SatanshuMishra Nov 30, 2025
250dcc5
fix: show actual commit message with emojis in preview
SatanshuMishra Nov 30, 2025
48bd866
fix: include emoji placeholder in generated config template
SatanshuMishra Nov 30, 2025
77296fc
chore: bump version to 0.4.0
SatanshuMishra Nov 30, 2025
0bf3705
chore: apply code formatting
SatanshuMishra Nov 30, 2025
1771d7a
chore: apply code formatting to command files
SatanshuMishra Nov 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .changeset/add-body-requirement-prompt.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/add-command-aliases-and-help-improvements.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/add-commit-editor-support.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changeset/add-keyboard-shortcuts.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/add-preview-toggle-functionality.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/fix-init-config-check-timing.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/fix-label-truncation.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/fix-preview-body-extraction.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/improve-commit-command-ux.md

This file was deleted.

2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ docs/

# Exclude build artifacts
*.map
**/*.map
dist/**/*.map
tsconfig.json
.prettierrc*

Expand Down
102 changes: 102 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,107 @@
# @labcatr/labcommitr

## 0.4.0

### Minor Changes

- 18d5a56: feat: implement terminal emoji detection and display adaptation
- Add emoji detection utility with industry-standard heuristics (CI, TERM, NO_COLOR, Windows Terminal)
- Implement automatic emoji stripping for non-emoji terminals in Labcommitr UI
- Always store Unicode emojis in Git commits regardless of terminal support
- Update commit, preview, and revert commands to adapt display based on terminal capabilities
- Ensure GitHub and emoji-capable terminals always show emojis correctly
- Improve user experience by cleaning up broken emoji symbols on non-emoji terminals

### Patch Changes

- 48bd866: fix: include emoji placeholder in generated config template
- Add {emoji} placeholder to template in buildConfig function
- Generated configs now include {emoji} in format.template field
- Fixes issue where emojis didn't appear in commits even when enabled
- Template now matches default config structure with emoji support
- Ensures formatCommitMessage can properly replace emoji placeholder

- 250dcc5: fix: show actual commit message with emojis in preview
- Preview now displays the exact commit message as it will be stored in Git
- Removed emoji stripping from preview display logic
- Users can see emojis even if terminal doesn't support emoji display
- Ensures preview accurately reflects what will be committed to Git/GitHub
- Fixes issue where emojis were hidden in preview on non-emoji terminals

## 0.3.0

### Minor Changes

- 5b707eb: feat: add body requirement prompt to init command
- New prompt in init flow to set commit body as required or optional
- "Yes" option marked as recommended for better commit practices
- Configuration properly respected in commit prompts
- When body is required, commit prompts show "required" and remove "Skip" option
- Defaults to optional for backward compatibility

- c435d38: feat: add init command alias and improve help text
- Add `i` alias for `init` command for faster access
- Update help examples to use `lab` instead of `labcommitr` consistently
- Add concise examples showing both full commands and aliases
- Add note clarifying both `lab` and `labcommitr` can be used
- Update README to document `init|i` alias
- Remove duplicate pagination text from preview and revert commands
- Improve help text clarity and consistency across all commands

- 5b707eb: feat: add editor support for commit body input
- Users can now open their preferred editor for writing commit bodies
- Supports both inline and editor input methods
- Automatically detects available editors (VS Code, Vim, Nano, etc.)
- Improved experience for multi-line commit bodies
- Configurable editor preference in configuration files

- 12b99b4: feat: add keyboard shortcuts for faster prompt navigation
- Add keyboard shortcuts module with auto-assignment algorithm
- Enable shortcuts by default in generated configurations
- Generate default shortcut mappings for commit types in init workflow
- Implement input interception for single-character shortcut selection
- Add shortcuts support to type, preview, and body input prompts
- Include shortcuts configuration in advanced section with validation
- Support custom shortcut mappings with auto-assignment fallback
- Display shortcut hints in prompt labels when enabled

- 8a8d29c: feat: add toggle functionality for body and files in preview
- Add toggle state for body and files visibility in commit detail view
- Implement `b` key to toggle body visibility on/off
- Implement `f` key to toggle files visibility on/off
- Reset toggles when viewing new commit or returning to list
- Update prompt text to indicate toggle behavior
- Fixes issue where pressing `b`/`f` caused repeated rendering
- Improves UX by allowing users to hide/show sections as needed

- 5b707eb: feat: enhance commit command user experience
- Terminal automatically clears at command start for maximum available space
- Improved staged file detection with support for renamed and copied files
- Color-coded Git status indicators (A, M, D, R, C) matching Git's default colors
- Connector lines added to files and preview displays for better visual flow
- More accurate file status reporting with copy detection using -C50 flag

### Patch Changes

- 43df95c: fix: move config existence check before Clef intro animation
- Perform early validation before any UI/animation in init command
- Check for existing config immediately after project root detection
- Only show Clef intro animation if initialization will proceed
- Provides better UX by failing fast with clear error message
- Prevents unnecessary animation when config already exists

- 5b707eb: fix: prevent label text truncation in prompts
- Increased label width from 6 to 7 characters to accommodate longer labels
- Fixes issue where "subject" label was being truncated to "subjec"
- Applied to both commit and init command prompts for consistency
- All labels now properly display full text with centered alignment

- 4597502: fix: exclude subject line from commit body extraction
- Split commit message by first blank line to separate subject and body
- Only return content after blank line as body in preview command
- Prevents subject line from appearing in body section
- Fixes incorrect display where commit subject was shown as part of body

## 0.1.0

### Minor Changes
Expand Down
Loading