Skip to content

Conversation

@SatanshuMishra
Copy link
Member

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@labcatr/[email protected]

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

@SatanshuMishra SatanshuMishra added ci Documents a change to our CI pipeline pr labels Nov 30, 2025
@SatanshuMishra SatanshuMishra self-assigned this Nov 30, 2025
@SatanshuMishra SatanshuMishra merged commit 7dab71f into main Nov 30, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Documents a change to our CI pipeline pr

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants